Reactivate organisation

POSThttps://app.speybooks.com/api/v1/admin/orgs/{id}/reactivate

Reactivate a deactivated organisation. Clears deactivated_at, deactivated_reason, and deactivated_by, and restores access at the request chokepoint.

Idempotent: reactivating an organisation that is already active is a no-op and writes no audit record.

Request Body

  • note: optional free-text for the audit trail, minimum 5 characters.

Records an ORGANISATION_REACTIVATED action in the audit log. A repeat on an already-active organisation returns alreadyActive: true and writes no audit record.

Error responses:

  • 404 NOT_FOUND: no organisation with that id.

Path parameters

idstringrequired
Organisation ID.

Body parameters

notestringoptional
Optional free-text note (audit trail only). Min 5 characters.
min length: 5

Response

200Organisation reactivated, or already active (idempotent).
Show response fields
messagestring

Error codes

404Organisation not found.