foliot docs

API reference / Workspaces / Restore a closed workspace

Restore a closed workspace

POST/workspaces/{workspaceId}/restore

Authenticate with a signed-in Foliot Console session.

An owner of the workspace, signed in. Never an app key. Reopens a closed workspace before purgeAfter: its members have their access back, the apps the closure stopped are as they were, with their existing API keys and signing secrets, and pending invitations that have not expired can be accepted again. An app an owner deleted on its own before the closure stays deleted. Bulk jobs the closure cancelled stay cancelled. 409 for a workspace that is not closed, and for one whose purge is due (its window ended, or an owner asked to purge it now). Recorded in the workspace’s history.

Path parameters

workspaceId
string (uuid)
REQUIRED

The workspace.

Responses

200 object OK
400 Error Invalid request.
401 Error Missing, malformed or unknown bearer token.
403 Error The token is valid but not permitted on this route.
404 Error No such resource.
409 Error Conflicts with existing state.
503 Error A dependency this route needs is unreachable.