foliot docs

API reference / Apps / Restore a deleted app

Restore a deleted app

POST/apps/{appId}/restore

Authenticate with an operator token or a signed-in Foliot Console session.

An operator token, or a signed-in person who is an owner of the app’s workspace. Never an app key. Undoes a delete that has not been purged: the app, its workflows, runs and history are as they were, and its existing API key and signing secret work again (rotate them if the delete was about a leaked credential). 404 for an app that is not deleted, or has been purged. 409 if a live app in the workspace has taken its name since. Recorded in the app’s credential history.

Path parameters

appId
string
REQUIRED

The app's id.

Request body

reason
string
OPTIONAL

Why. Optional; recorded with the action.

max length 1000

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.