Move workflows to a type

posthttps://api.expiryedge.com/v1/moveWorkflowsToType
editor or admin60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/moveWorkflowsToType' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "workflowIds": [
    "wf_3Kd9Tx",
    "wf_8Lp2Za"
  ],
  "targetTypeId": "wtype_R4c2"
}'
Antwort
{
  "success": true,
  "message": "2 workflow(s) moved successfully"
}

Sets workflow_type_id on each workflow and its runs; targetTypeId: null removes the type. Workflows outside your organization are skipped silently (the message count includes them). Authentication failures currently return 500 {error} from this handler, not 401.

Body-Parameter

application/json
  • workflowIdsarray of stringerforderlich
    min items: 1
  • targetTypeIdstring | null

Rückgabe

200
Moved.
  • successboolean
  • messagestring

Fehler

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.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.
500
Unexpected server error. Retry later; quote requestId to support.