Archive or delete a workflow
post
https://api.expiryedge.com/v1/deleteWorkflowbearer token (Firebase ID token or session JWT); role editor or admin60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/deleteWorkflow?id=wf_3Kd9Tx&permanent=false' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"permanent": true
}'Antwort
{
"message": "Workflow archived successfully"
}Archives the workflow (status: archived) by default. With permanent=true (query or body) it deletes the workflow, its sections and steps.
Either way, expiry workflow attachments that use it are cancelled. Existing runs are kept.
The web app sends DELETE; any HTTP method is accepted.
idstringerforderlichWorkflow id.permanentbooleanDelete permanently instead of archiving (may also be sent in the body).Standardfalse
permanentboolean
200
Archived or deleted.
messagestringerforderlich
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
403 | Authenticated, but your role or organization does not allow this action. |
404 | The record does not exist or is not in your organization. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | Unexpected server error. Retry later; quote requestId to support. |
