Access
PreviewClose the organization
Closes the organization now and deletes it after thirty days unless the closing is cancelled. The Owner confirms by
POST
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
application/json- body
confirmName*stringThe organization's name, typed exactly.
The organization is closing.
application/json- response
closedAt*stringFormat
date-timedeleteAt*stringWhen the organization's data is deleted if the closing is not cancelled first.
Format
date-timecancelledAt?stringFormat
date-timestate*OrganizationClosureStateValue in
"closing""cancelled""deleted"curl -X POST 'https://wardn.example.com/api/v1/organization/close' \ -H 'Content-Type: application/json' \ -d '{ "confirmName": "string"}'Example Response
{ "closedAt": "2019-08-24T14:15:22Z", "deleteAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "state": "closing"}Download an archive of the organization's data GET
Streams the zip with a file name in `Content-Disposition`. An archive that is not `ready` (still building, failed, or
The organization's closing GET
The closing the organization is under, or the last one that was cancelled. 404 for an organization that was never closed.