remagicaDocs home
API referenceWorkflows

Preview a stop

POST
/workflows/{workflowId}/results/stop-preview

Needs a key withworkflows:cancel

What Stop on these open results (resultIds, or a run's: runId) would still charge, asked of their providers now without changing anything: a result already rendering where its provider can't stop it finishes and is charged. warning is what to confirm ("Already rendering — it will finish and be charged (180 credits)."), or null when Stop cancels them all for free.

Requires scope workflows:cancel.

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

Request Body

application/json
  1. body
resultIds?array<>
Items1 <= items <= 200
runId?string
Length1 <= length <= 128

Response Body

What Stop would charge.

application/json
  1. response
warning*string|null
Example Request
curl -X POST 'https://api.remagica.com/api/v1/workflows/cb35dcdb-5b3d-4f60-8e2a-1d9c6b4f7e05/results/stop-preview' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "warning": "string"}