Skip to main content
PUT
/
tenant
/
{tenantId}
/
administration
/
chain_explorers
/
update
Updates the API key for a specific chain explorer credential configuration.
curl --request PUT \
  --url https://api.example.com/tenant/{tenantId}/administration/chain_explorers/update \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 1,
  "apiKey": "550e8400-e29b-41d4-a716-446655440000"
}
'
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Path Parameters

tenantId
integer<int64>
required

Identifier of the tenant.

Body

application/json

Request containing the chain explorer identifier and new API key.

Request to update chain explorer API key credentials.

id
integer<int64>

Identifier of the chain explorer configuration to update.

Example:

1

apiKey
string

New API key for the chain explorer provider.

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

200 - application/json

Chain explorer credentials updated successfully.

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.