Add a Speed Dial Number

Add a speed dial number.

Request URL

POST {base_url}/{api_path}/speed_dial/create?access_token={access_token}

Request parameters

Parameter Required Type Description
code Yes String The speed dial number.
phone_number Yes String The phone number to assign to the speed dial number.
remark No String The remark for the speed dial number.

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 speed dial number.

Example

Request example

POST /openapi/v1.0/speed_dial/create?access_token=KHlhDSbuZ75OsFLDUbZHdkE5cIQEcIlK HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
    "code": "98",
    "phone_number": "5500"
}

Response example

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