Update a workflow type
post
https://api.expiryedge.com/v1/updateWorkflowTypeeditor or admin60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/updateWorkflowType' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "wtype_R4c2",
"name": "Licensing & permits",
"description": "License and permit renewals",
"color": "#2e7d32"
}'Antwort
{
"id": "wtype_R4c2",
"name": "Licensing & permits",
"description": "License and permit renewals",
"color": "#2e7d32",
"organization_id": "org_northwind",
"created_by": "u_71bXq",
"created_at": "2026-09-27T14:05:00.000Z",
"updated_at": "2026-09-27T14:05:00.000Z"
}The id goes in the body. name is required; description and color are reset to defaults when omitted.
Authentication failures currently return 500 {error} from this handler, not 401.
The web app sends PUT; any HTTP method is accepted.
namestringerforderlichidstringerforderlichdescriptionstringcolorstringHex color.Standard#1976d2
200
Updated type.
idstringschreibgeschütztnamestringdescriptionstringcolorstringorganization_idstringschreibgeschütztcreated_bystringschreibgeschütztcreated_atstringISO 8601 date-time string (UTC). Formerly a raw Firestore Timestamp ({_seconds, _nanoseconds}).format: date-timeupdated_atstringISO 8601 date-time string (UTC). Formerly a raw Firestore Timestamp ({_seconds, _nanoseconds}).format: date-timeworkflow_countintegerschreibgeschützt
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. |
