You can call this operation to update the content of a contract project in Ant Blockchain.


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
ContentId String Yes R6XMn59e

The ID of the file or folder to update.

ParentContentId String Yes R38DYDop

The ID of the parent directory where the file or folder to update resides.

Action String No UpdateAntChainContractContent

The operation that you want to perform. Set the value to UpdateAntChainContractContent.

Content String No update content

The new content for the file or folder.

ContentName String No newFile

The new name for the file or folder.

RegionId String No cn-hangzhou

The ID of the region where Ant Blockchain is used.

Response parameters

Parameter Type Example Description
RequestId String 08CBD579-C430-4F1F-9011-C120FA1E9B97

The ID of the request.

Result String success

The result of the operation.


Sample requests

&<Common request parameters>

Sample success responses

JSON format


Error codes

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