Skip to main content
PUT
/
platform
/
admin
/
smart_contract_templates
/
{id}
cURL
curl --request PUT \
  --url https://api.example.com/platform/admin/smart_contract_templates/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "isDeleted": false,
  "blockchainId": 1,
  "contractName": "ERC20Token"
}
'
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Path Parameters

id
integer<int64>
required

Query Parameters

api-version
string | null

Body

application/json

Request to update an existing smart contract template.

contractName
string
required

Name of the smart contract template. Maximum length is 256 characters.

Maximum string length: 256
Example:

"ERC20Token"

isDeleted
boolean

Indicates whether the template is marked as deleted.

Example:

false

blockchainId
integer<int64>

Identifier of the blockchain this template is associated with.

Example:

1

Response

Wrapper for API operation results containing success status, error information, and return value.

isSuccess
boolean

True if the operation completed successfully, false otherwise.

Example:

true

isFailure
boolean

True if the operation failed, false otherwise.

Example:

false

error
object

Error information returned when the operation fails.

Example:
{
"code": "ValidationError",
"message": "The request parameters failed validation.",
"info": [
"The Name field is required.",
"The Id field must be greater than 0."
]
}
value
object

The result value returned when the operation is successful.

Example:
{
"isDeleted": false,
"blockchainId": 1,
"contractName": "ERC20Token",
"id": 1
}