AWA Manual Assignment API
-
- UpdatedJan 30, 2025
- 6 minutes to read
- Yokohama
- API reference
The AWA Manual Assignment API provides an endpoint to manually assign available work items to available Advanced Work Assignment (AWA) agents.
A work item is a single piece of work handled by an AWA agent from start to finish. For example, one chat or one case is an object that can be routed and assigned to agents. For more information, refer to Advanced Work Assignment.
This API requires the Advanced Work Assignment (com.glide.awa) plugin. To call this API, you must have either the awa_manager or awa_integration_user role.
AWA Manual Assignment – POST /now/awa/workitems/{work_item_sys_id}/assignments
Assigns an available work item to an available Advanced Work Assignment (AWA) agent.
The primary use case for this endpoint is to enable external routing systems to route work items. If Advanced Work Assignment is configured to use external routing, work items in the queue are assigned using external routing and not AWA. You can assign the work item task by calling this endpoint. For more information, refer to Use external routing.
URL format
Versioned URL: /now/{api_version}/awa/workitems/{sys_id}/assignments
Default URL: /now/awa/workitems/{sys_id}/assignments
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
work_item_sys_id | Sys_id of the work item to assign to an available agent. The work item must be unassigned and in the Pending Accept or Queued state. For more information, refer to Check unassigned task work items. Data type: String Table: Work Items [awa_work_item] |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Content-Type | Data format of the
request body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Response body parameters (JSON or XML)
Name | Description |
---|---|
success | Flag that indicates whether the manual work item assignment is successful. Possible values:
Data type: Boolean |
message | Response message acknowledging successful assignment or an exception. Success: "Manual assignment successfully requested." Exceptions:
Data type: String |
Example: cURL request
The following example shows how to assign a work item to an available AWA agent using only the required parameters.
The result shows that the task has been successfully assigned to the agent. You can verify results in the Assigned to field of the Work Items [awa_work_item] table.
Example: cURL request
The following example shows how to assign a work item to an available AWA agent including the optional parameters.
The result shows that the task has been successfully assigned to the agent. You can verify results in the Assigned to field of the Work Items [awa_work_item] table.