API
AgentWork
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/agents/{id}/spark/work/{work_id}/handled |
create |
Work handled |
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
No | Id |
create
POST /api/v1/organizations/{organization_id}/agents/{id}/spark/work/{work_id}/handled
Operation ID: post_api_v1_organizations_organization_id_agents_id_spark_work_work_id_handled.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
work_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
revision |
integer |
Yes |
Responses
204: Work handled
403: Viewer cannot manage this agent
404: Authorized agent or work not found
409: The work has a newer revision
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |