Modifies the attributes of a specified enterprise code.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateEnterpriseCode

The operation that you want to perform.

Set the value to UpdateEnterpriseCode.

EnterpriseCode String Yes 12P**

The enterprise code.

IsDefault Boolean Yes true

Specifies whether to specify the enterprise code as the default one. Valid values:

  • true: yes
  • false: no
RegionId String Yes cn-shanghai

The ID of the region to which the enterprise code belongs.

You can call the DescribeRegions operation to query the most recent region list.

ClientToken String No 02fb3da4****

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

Response parameters

Parameter Type Example Description
RequestId String FBDB18D8-E91E-4978-8D6C-6E2E3EE10133

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=UpdateEnterpriseCode
&EnterpriseCode=12P**
&IsDefault=true
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<UpdateEnterpriseCodeResponse>
  <RequestId>FBDB18D8-E91E-4978-8D6C-6E2E3EE10133</RequestId>
</UpdateEnterpriseCodeResponse>

JSON format

{"RequestId":"FBDB18D8-E91E-4978-8D6C-6E2E3EE10133"}

Error codes

HttpCode Error code Error message Description
400 EnterpriseCode.NotExist The specified enterprise code does not exist. The error message returned because the specified enterprise code does not exist.

For a list of error codes, visit the API Error Center.