v4

latestOpenAPI 3.1.02026-08-02261331761.5 KB
Organizations

Restore Organization

Restores a soft-deleted organization. Superuser-only endpoint.

Clears the deleted_at timestamp so the organization becomes visible again. UUID-only: slug lookup is not accepted because org keys are only unique among active orgs (partial unique index on key WHERE deleted_at IS NULL). Idempotent: calling restore on an already-active org returns the current row. Returns 403 if the caller is not a superuser. Returns 404 if no organization with the given id exists. Returns 409 if another active org has reused this org's key while it was soft-deleted — the key must be freed before this org can be restored. Returns 422 if org_id is not a valid UUID.

post/v2/orgs/{org_id}/restore

Path parameters

org_idstring uuid required

Organization UUID (slug not accepted)

Organization UUID (slug not accepted)

Response

Successful Response

keystring required

A URL-friendly name of the organization (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the organization.

idstring uuid required

Unique id of the organization

is_enterpriseboolean required

Is this an enterprise account?

created_atstring date-time required

Date and time when the organization was created (ISO_8601 format).

updated_atstring date-time required

Date and time when the organization was last updated/modified (ISO_8601 format).

namestring required

The name of the organization, usually it's your company's name.

settingsobject

the settings for this project