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:

  • 0: The call disposition is available to all call queues.
  • 1: The call disposition is available to specified call queues.
queue No String The unique ID(s) of call queues.
Note:
  • This field is required when queue_scope is 1.
  • You can query call queue's ID using the Query Queue List interface; Use a comma to separate multiple IDs.

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.
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
}