Move workflows to a type
post
https://api.expiryedge.com/v1/moveWorkflowsToTypeeditor or admin60/minAny method
Request
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"
}'Response
{
"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.
workflowIdsarray of stringrequiredmin items: 1targetTypeIdstring | null
200
Moved.
successbooleanmessagestring
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. |
