remagicaDocs home
API referenceWorkflows

Restore a deleted result

POST
/workflows/{workflowId}/results/{resultId}/restore

Needs a key withworkflows:write

Brings back a result deleted in the last 30 days (undoes DELETE /workflows/{workflowId}/results/{resultId}): it's in its node's history again, in its place. Restoring one that isn't deleted changes nothing.

Requires scope workflows:write.

Authorization

apiKey
headerx-api-key<token>

An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.

Path Parameters

workflowId*string
Length1 <= length <= 128
resultId*string
Length1 <= length <= 128

Response Body

Restored.

application/json
  1. response
restored*unknown
Example Request
curl -X POST 'https://api.remagica.com/api/v1/workflows/cb35dcdb-5b3d-4f60-8e2a-1d9c6b4f7e05/results/750ab75b-5b3d-4f60-8e2a-1d9c6b4f7e05/restore'
Example Response
{  "restored": true}