Update an entity workflow
PATCH/projects/{projectId}/entities/{entityId}/workflows/{workflowId}
Base URL: https://api.tinkermode.com
Partially update the workflow with the specified ID.
Only fields present in the request body are updated; omitted fields are left unchanged.
When triggers or steps are provided they replace the entire existing list.
Authentication
Send an Authorization header of the form ModeCloud <AUTH_CODE>.
Must contain the key of a user or service account with permissions to update entity workflows, or a project API key with admin permission.
Path parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
projectId | integer | Yes | The unique ID for a specified project. | |
entityId | string | Yes | Entity ID (unique within project) | |
workflowId | string | Yes | The unique ID of the workflow (MongoDB ObjectID hex string). |
Request body
Content type: application/json
| Property | Type | Required | Constraints | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
description | string | No | New description for the workflow. | |||||||||||||||||||||||||||||||||||||||||
enabled | boolean | No | Whether the workflow should be active. | |||||||||||||||||||||||||||||||||||||||||
name | string | No | New display name for the workflow. | |||||||||||||||||||||||||||||||||||||||||
steps | array<object> | No | Replacement list of steps. Replaces all existing steps when provided. | |||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
triggers | array<object> | No | Replacement list of triggers. Replaces all existing triggers when provided. | |||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
Responses
200 Successfully updated the workflow. Returns the updated workflow object.
Content type: application/json
| Property | Type | Required | Constraints | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
createdAt | string | No | The time the workflow was created (ISO 8601). | |||||||||||||||||||||||||||||||||||||||||
description | string | No | An optional description of the workflow. | |||||||||||||||||||||||||||||||||||||||||
enabled | boolean | No | Whether the workflow is active and eligible to be triggered. | |||||||||||||||||||||||||||||||||||||||||
entityId | string | No | The unique identifier for the entity the workflow belongs to. | |||||||||||||||||||||||||||||||||||||||||
id | string | No | The unique identifier for the workflow (MongoDB ObjectID hex string, auto-generated). | |||||||||||||||||||||||||||||||||||||||||
name | string | No | The display name of the workflow. | |||||||||||||||||||||||||||||||||||||||||
projectId | integer | No | The unique identifier for the project the workflow belongs to. | |||||||||||||||||||||||||||||||||||||||||
revision | integer | No | Monotonically increasing revision number, updated on every write. | |||||||||||||||||||||||||||||||||||||||||
steps | array<object> | No | Ordered list of steps to execute when the workflow runs. | |||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
triggers | array<object> | No | List of triggers that can start this workflow. | |||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
updatedAt | string | No | The time the workflow was last updated (ISO 8601). | |||||||||||||||||||||||||||||||||||||||||
204 The workflow has been successfully updated.
401 Authorization is required to access this resource.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
403 Invalid parameters or permission denied.
404 Workflow not found.
429 Request failed because of rate limit.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
500 An unexpected error has occurred.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
503 The service is temporarily unavailable.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |