assign_work
/entities/{entity_id}/records/{record_id}/work/assignReplaces the work's candidates, and needs an Assign scope that reaches the
record. An assignee may read a field of the record only where a routing
rule may: never a secured one. The operation declares no idempotency key: a
repeated call emits its work.assigned event and notifies again, so
re-read the record before retrying.
A service principal's credential, or a person's access token, AgentFlow's own or an installed app's. A service principal's effective permissions are its role permissions intersected with the credential's scopes.
In: header
Path Parameters
Entity id
uuidRecord id
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Name who may claim the work, in place of whoever it names now.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/records/497f6eca-6276-4993-bfeb-53cbbbba6f08/work/assign" \ -H "Content-Type: application/json" \ -d '{ "assign": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "user" } ] }'{ "active": true, "assigned_group_ids": [ "4cee1a64-b703-4aef-a938-98b59ba36ecf" ], "assigned_unit_ids": [ "366d0120-aabd-4ba4-abdb-7f576a297ea7" ], "assigned_user_ids": [ "173e51c9-2537-489c-9d8b-ff125a6bd70d" ], "claimed_at": "2019-08-24T14:15:22Z", "claimed_by_user_id": "844949b6-eaeb-4229-906a-b1aa02fddcca", "record_id": "8bf519b6-a3e0-49d2-8e42-039542d9a489"}