ModifyPhoneNumber

更新时间:
复制 MD 格式

You can invoke ModifyPhoneNumber to modify the information of a specified phone number under a specified instance, primarily to update the number's usage and the attached contact flow ID.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

Instance ID.

ccc-test

Number

string

Yes

Phone number.

0102134****

Usage

string

Yes

Number usage.

Valid values:

  • Outbound :

    Outbound

  • Inbound :

    Inbound

  • Bidirection :

    Inbound and Outbound

Bidirection

ContactFlowId

string

No

The IVR contact flow ID attached to the number. This field is valid only when the number usage is Inbound or Bidirection.

78128960-bb00-4ddc-8a82-923a8c5bd22d

Response elements

Element

Type

Description

Example

object

Code

string

Response code.

OK

HttpStatusCode

integer

HTTP status code.

200

Message

string

Response message.

RequestId

string

Request ID.

EEEE671A-3E24-4A04-81E6-6C4F5B39DF75

Examples

Success response

JSON format

{
  "Code": "OK",
  "HttpStatusCode": 200,
  "Message": "无",
  "RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75"
}

Error codes

HTTP status code

Error code

Error message

Description

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.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.