调用ModifyPhoneNumber修改指定实例下指定号码的信息,主要是修改号码用途和绑定的联系流ID。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| InstanceId | string | 是 | 实例 ID。 | ccc-test |
| Number | string | 是 | 号码。 | 0102134**** |
| Usage | string | 是 | 号码用途。 枚举值:
| Bidirection |
| ContactFlowId | string | 否 | 号码绑定的 IVR 联系流 ID,仅在号码用途为 Inbound 或 Bidirection 时,该字段才有效。 | 78128960-bb00-4ddc-8a82-923a8c5bd22d |
返回参数
示例
正常返回示例
JSON格式
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75"
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 400 | Parameter.Enumeration | The parameter %s must be one of the value of enumeration %s. | 该参数必须为系统限定的枚举值之一。 |
| 404 | NotExists.InstanceId | The specified instance %s does not exist. | 指定的呼叫中心实例不存在。 |
| 404 | NotExists.Number | The specified number %s does not exist in instance %s. | 云联络中心实例中不存在指定的号码。 |
访问错误中心查看更多错误码。
