Update a workflow type

posthttps://api.expiryedge.com/v1/updateWorkflowType
editor 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.

Body-Parameter

application/json
  • namestringerforderlich
  • idstringerforderlich
  • descriptionstring
  • colorstring
    Hex color.
    Standard #1976d2

Rückgabe

200
Updated type.
  • idstringschreibgeschützt
  • namestring
  • descriptionstring
  • colorstring
  • organization_idstringschreibgeschützt
  • created_bystringschreibgeschützt
  • created_atstring
    ISO 8601 date-time string (UTC). Formerly a raw Firestore Timestamp ({_seconds, _nanoseconds}).
    format: date-time
  • updated_atstring
    ISO 8601 date-time string (UTC). Formerly a raw Firestore Timestamp ({_seconds, _nanoseconds}).
    format: date-time
  • workflow_countintegerschreibgeschützt

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.
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.