Interaction Management API
-
- UpdatedAug 3, 2023
- 5 minutes to read
- Vancouver
- API reference
The Interaction Management API provides endpoints to create interactions.
This class requires the Interaction Logging, Routing, and Queueing plugin (com.glide.interaction).
Interaction - POST /now/interaction
Inserts or updates a record in the interaction table.
URL format
Versioned URL: /api/now/{api_version}/interaction
Default URL: /api/now/interaction
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 |
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)
Example: Sample cURL request
Interaction - POST /now/interaction/{interaction_id}/close
Changes the state of an interaction to closed or closed complete.
URL format
Versioned URL: /api/now/{api_version}interaction/{interaction_id}/close
Default URL: /api/now/interaction/{interaction_id}/close
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 |
interaction_id | Sys_id for the interaction you want to close. Data type: String |
Name | Description |
---|---|
None |
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.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
401 | Unauthorized. The user credentials are incorrect or haven't been passed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |