Update the Account name or settings
/portal/v1/accounts/{accountSlug}Updates the Account's display name and/or settings JSON; both body fields are optional and only what's provided is changed. settings replaces the whole object, so merge client-side to change a single key. slug is intentionally not editable here. Supply the version you read via the If-Match header for optimistic locking — a mismatch returns 409 with the current row. Writes an account.updated audit row.
Authentication
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
account.manageAccountEdit account profile and general settings. Granted through an administrator role in the Admin Workspace; a valid token without it is refused with 403.
Path Parameters
accountSlugstring Required Headers
if-matchrequiredIf-MatchOptimistic-lock token — pass the `version` you read on GET. Mismatch returns 409.
Request body
application/json
namestring Optional Display name shown in the dashboard chrome
settingsobject Optional Account-level configuration (branding hints, SSO settings, etc.). Replaces the full settings object — merge on the client side if you only want to change one key.
Responses
application/json
data *AccountResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Errors
When the request can't be completed, the response body includes a stable error code you can branch on.
account.capability_requiredForbiddenThe signed-in user's administrator roles do not grant the capability this endpoint requires.
Ask an account administrator to grant a role carrying the capability named in the Authentication section, then retry.
Returned object
curl -X PATCH "https://auth.canopy-io.com/portal/v1/accounts/value" \ -H "if-match: value" \ -H "If-Match: value" \ -H "Authorization: Bearer $CANOPY_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "settings": {} }'
{ "data": { "id": "string", "name": "string", "slug": "string", "settings": {}, "plan": "string", "version": 0, "created_at": "2026-04-20T12:00:00.000Z", "updated_at": "2026-04-20T12:00:00.000Z", "delete_grace_days": 0 } }
Tell us how we can improve this guide.