Pular para o conteúdo

Update a vault

Requisição

Update a vault's name and description by ID

Segurança
TokenAuth
Caminho
idstringobrigatório

The vault ID

Corpoapplication/jsonobrigatório
namestringobrigatório

The name of the vault

Exemplo:"Treasury vault"
descriptionstring

The description of the vault

Exemplo:"A vault used by the treasury department"
correlationIdstring

Correlation ID for tracking various actions on the vault

Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
curl -i -X PUT \
  'https://docs.ripple.com/_mock/pt-br/products/wallet/api-docs/palisade-api/palisade-api/v2/vaults/{id}' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Treasury vault",
    "description": "A vault used by the treasury department",
    "correlationId": "ce4918bf-a199-4ce2-85a3-d0d296855384"
  }'

Respostas

Corpoapplication/json
idstringobrigatório

The vault ID

Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
createdBystringobrigatório

The user ID that created the vault

Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
createdAtstring, (date-time)obrigatório

The date and time the vault was created

Exemplo:"2022-03-29T10:22:22.420Z"
updatedAtstring, (date-time)obrigatório

The date and time the vault was updated

Exemplo:"2022-03-29T10:22:22.420Z"
namestringobrigatório

The name of the vault

Exemplo:"Treasury vault"
descriptionstring

The description of the vault

Exemplo:"A vault used by the treasury department"
externalIdstring

External ID of this vault, unique to the organization

Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
correlationIdstring

Correlation ID for the vault

Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
Resposta
{ "id": "ce4918bf-a199-4ce2-85a3-d0d296855384", "createdBy": "ce4918bf-a199-4ce2-85a3-d0d296855384", "createdAt": "2022-03-29T10:22:22.420Z", "updatedAt": "2022-03-29T10:22:22.420Z", "name": "Treasury vault", "description": "A vault used by the treasury department", "externalId": "ce4918bf-a199-4ce2-85a3-d0d296855384", "correlationId": "ce4918bf-a199-4ce2-85a3-d0d296855384" }