Add a Call Disposition
Add a call disposition.
Request URL
POST {base_url}/{api_path}/call_disposition/create?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| name | Yes | String | The name of the call disposition. |
| description | No | String | The description of the call disposition. |
| queue_scope | No | Integer | The scope of call queues where the call disposition is available. Valid value:
|
| queue | No | String | The unique ID(s) of call queues. Note:
|
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
| id | Integer | The unique ID of the newly created call disposition. |
Example
Request example
POST /openapi/v1.0/call_disposition/create?access_token=lweYFZuwsgSrhFOKC3Z0XmDRXfbPohi6 HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
"name": "API Test Disposition",
"description": "test",
"queue_scope": 1,
"queue": "1"
}
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"id": 3
}