Skip to main content
PUT
/
tenant
/
{tenantId}
/
custodians
/
{id}
/
account_name
Updates the account name associated with a custodian.
curl --request PUT \
  --url https://api.example.com/tenant/{tenantId}/custodians/{id}/account_name \
  --header 'Content-Type: application/json' \
  --data '
{
  "custodianId": 42,
  "accountName": "Alpha Treasury Desk"
}
'
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Path Parameters

tenantId
integer<int64>
required

Identifier of the tenant that owns the custodian.

id
integer<int64>
required

Identifier of the custodian to update.

Body

application/json

Payload containing the new custodian account name.

Request to rename a custodian account.

custodianId
integer<int64>

Identifier of the custodian to rename.

Example:

42

accountName
string

New account name to assign to the custodian.

Example:

"Alpha Treasury Desk"

Response

200 - application/json

Returned when the account name is 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.

Example:
{ "success": true }