Update a workflow definition
PATCH
/v1/workflow-definitions/{id}curl -X PATCH 'https://api.embodiflow.io/v1/workflow-definitions/{id}' \
-H 'Authorization: Bearer $EMBODIFLOW_PAT' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"description": "string"
}'Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Path parameters
- idstringrequired
Header parameters
- if-matchstringrequired
- If-Matchstring
Optional precondition. A matching tag proceeds and returns the new ETag. A stale tag returns 412 PRECONDITION_FAILED with no write. Absent proceeds (opt-in this release). If-Match: * succeeds when the resource exists. Malformed values return 400 IF_MATCH_INVALID.
Request body
Content-Typeapplication/json
- namestring
- descriptionstring
Responses
Success
- dataobjectrequired
- idstringrequired
- codestringrequired
- namestringrequired
- descriptionstring | nullrequired
- reusableone ofrequired
- ownerstringrequiredAllowed valuestenantplatform
- purposestring | nullrequired
- latestRevisionnumber | nullrequired
- specHashstring | nullrequired
- publishedAtstring | nullrequired
- rowVersionnumberrequired
Response example
{
"data": {
"id": "string",
"code": "string",
"name": "string",
"description": "string",
"reusable": false,
"owner": "tenant",
"purpose": "string",
"latestRevision": 0,
"specHash": "string",
"publishedAt": "string",
"rowVersion": 0
}
}Servershttps://api.embodiflow.io/v1https://api.embodiflow.dev/v1