acceptAgentWork
Accepts a work item that’s assigned to an agent. Available in API versions 32.0 and later.
| Name | Type | Description |
|---|---|---|
workId | String | The ID of the work item the agent accepts. |
callback | function | JavaScript method to call when an agent accepts the work item associated with the workId. |
This method is asynchronous so it returns its response in an object in a callback method. The response object contains the following properties:
| Name | Type | Description |
|---|---|---|
success | Boolean | true if accepting the work item was successful; false if accepting the work item wasn’t successful. |