Edit a Call Disposition

Edit a call disposition.

Request URL

POST {base_url}/{api_path}/call_disposition/update?access_token={access_token}

Request parameters

Parameter Required Type Description
id Yes Integer The unique ID of a call disposition.
Note: You can query call disposition's ID using the Query Call Disposition List interface.
name No 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.

Example

Request example

POST /openapi/v1.0/call_disposition/update?access_token=lweYFZuwsgSrhFOKC3Z0XmDRXfbPohi6 HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
    "id": 3,
    "name": "API Test Disposition Edited"
}

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS"
}