Docs
Live demo
PUT/api/v2/organizations/{id}

A token can rename the organization, but a change of mfa_required needs a fresh second factor. A token cannot give a second factor, so such a change gets 403 auth.api_token_not_allowed. Make it in the console.

Update an existing organization's properties. Changing mfa_required requires an administrator with an enrolled second factor to have confirmed it within the re-authentication window (POST /auth/mfa/reauth). A request that repeats the current value does not. An API token changes mfa_required only when it was issued with allow_security_changes.

Parameters

Path1 required of 1
idstringpathrequired

Organization ID (UUID)

Request body application/json · OrganizationRequest

Organization update request

Required1 of 3 fields
namestringrequired
min length 1 · max length 100
Optional2 fields
descriptionstring
max length 1000
mfa_requiredboolean

Require a second factor from every member before a console session is issued. Omitted keeps the current policy.

Responses

200

OK

OrganizationResponse · 6 fields
created_atstring
descriptionstring
idstring
mfa_requiredboolean

True when the organization requires a second factor from every member.

namestring
updated_atstring
403

Forbidden: the caller's roles do not grant the permission of the operation, or mfa_required changes and the administrator's second factor was not confirmed recently (details.reason=mfa_reauth_required), or the request uses an API token issued without allow_security_changes (details.reason=api_token_security_changes_not_allowed).

Common errors: 400 401 404 409 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close