Retry blocked workflow runs
POST
/v1/forms/{form}/workflow-runs/retry-batch
const url = 'https://api.submeto.com/v1/forms/example/workflow-runs/retry-batch';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"limit":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.submeto.com/v1/forms/example/workflow-runs/retry-batch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "limit": 1 }'Retries the oldest CP-blocked runs for one Form, bounded to 100. Requires
workflows:write, an idempotency key, and explicit user confirmation.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”form
required
string
The form ID.
Header Parameters
Section titled “Header Parameters”Idempotency-Key
string
Request Body
Section titled “Request Body”Media typeapplication/json
object
limit
Maximum runs to retry (1-100, default 100).
integer
Examplegenerated
{ "limit": 1}Responses
Section titled “Responses”Batch retry accepted
Media typeapplication/json
object
data
object
selected
integer
restarted
integer
still_blocked
integer
request_id
string
Example
{ "data": { "selected": 3, "restarted": 3, "still_blocked": 0 }, "request_id": "REQUEST_ID"}