Update Account

Updates the name or other details of an existing account.

PATCH/organizations/accounts/{account_id}

Updates an account.

Path Parameters

account_idstringrequired

Account UUID.

Body application/json

namestring

Account name (min=1, max=255).

Response

OK

idstring<uuid>
namestring
account_group_idstring<uuid>
created_atstring<date-time>
updated_atstring<date-time>
Request
curl -X PATCH "https://api-sandbox.whitelabel.com/v1/organizations/accounts/<account_id>" \
  -H "Content-Type: application/json" \
  -H "PUBLIC-API-KEY: <PUBLIC-API-KEY>" \
  -H "PRIVATE-SECRET-KEY: <PRIVATE-SECRET-KEY>" \
  -d '{
  "name": "string"
}'
Response
{
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "account_group_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "1970-01-01T00:00:00.000Z",
  "updated_at": "1970-01-01T00:00:00.000Z"
}