PUT
/
subaccounts
/
{id}
curl --request PUT \
  --url https://api.cnaught.com/v1/subaccounts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Operations Department",
  "email": "jane.doe@example.com",
  "default_portfolio_id": "eWvNvC12"
}'
{
  "id": "5nubL0NS",
  "name": "Operations Department",
  "email": "jane.doe@example.com",
  "default_portfolio_id": "eWvNvC12",
  "logo_url": "https://customer-assets.cnaught.com/fe0df075-30e2-4e58-9feb-154e72a9205f/subaccount_logo.png"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of subaccount to return / modify

Examples:

"5nubL0NS"

Body

application/json

Subaccount Update Parameters

The body is of type object.

Response

200
application/json

Subaccount Details after update

The response is of type object.