Skip to content

Gate an agent's record create and/or update for approval, optionally limited to one database and to named fields (a person who is an admin)

POST
/api/v1/workspaces/{ws}/agent-write-gates
Media typeapplication/json
object
agent_id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
operations
required
Array<string>
>= 1 items
Allowed values: create update
database_id
string format: uuid
nullable /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
fields
Array<string>
nullable <= 100 items