Core operations
Update a workflow
Introduction
- API Reference
- Platform
- Platform APIs
- Login & sign up
- Organizations
- SLA duration
- Users
- Teams
- Tickets
- Comments & reactions
- Custom fields
- Forms
- Draft tickets
- Accounts & contacts
- Custom objects
- Workflows
- SLA
- Storage
- Notifications
Core operations
Update a workflow
PATCH
/
api
/
v1
/
workflows
/
{workflowUniqueIdentifier}
{
"uid": "<string>",
"uniqueIdentifier": "<string>",
"name": "<string>",
"version": 123,
"triggerEvent": {
"uid": "<string>",
"description": "<string>",
"eventName": "<string>",
"source": "platform_app",
"schema": {},
"metadata": {}
},
"filters": {},
"annotations": [
"<string>"
],
"workflowDefinition": [
{
"stepIdentifier": 123,
"activity": {
"uniqueIdentifier": "<string>",
"autoUpgradeToLatestVersion": true,
"version": 123
},
"input": {},
"retryPolicy": {
"maximumAttempts": 123,
"initialInterval": 123,
"backoffCoefficient": 123
},
"onFailure": "ABORT",
"executionTimeout": 123,
"isSleepActivity": true,
"dependencies": [
"<string>"
],
"requireApproval": true,
"approverType": "USER",
"approver": "<string>",
"approvalTimeout": 123,
"filters": {},
"compensationActivity": {
"activity": {
"uniqueIdentifier": "<string>",
"autoUpgradeToLatestVersion": true,
"version": 123
},
"input": {}
}
}
],
"executingAgent": "<string>",
"isActive": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"teamId": "<string>",
"metadata": {}
}
Path Parameters
Body
application/json
Available options:
ABORT
, CONTINUE
, COMPENSATE
Available options:
USER
, TEAM
Response
200
application/json
Operation successful
Available options:
ABORT
, CONTINUE
, COMPENSATE
Available options:
USER
, TEAM
{
"uid": "<string>",
"uniqueIdentifier": "<string>",
"name": "<string>",
"version": 123,
"triggerEvent": {
"uid": "<string>",
"description": "<string>",
"eventName": "<string>",
"source": "platform_app",
"schema": {},
"metadata": {}
},
"filters": {},
"annotations": [
"<string>"
],
"workflowDefinition": [
{
"stepIdentifier": 123,
"activity": {
"uniqueIdentifier": "<string>",
"autoUpgradeToLatestVersion": true,
"version": 123
},
"input": {},
"retryPolicy": {
"maximumAttempts": 123,
"initialInterval": 123,
"backoffCoefficient": 123
},
"onFailure": "ABORT",
"executionTimeout": 123,
"isSleepActivity": true,
"dependencies": [
"<string>"
],
"requireApproval": true,
"approverType": "USER",
"approver": "<string>",
"approvalTimeout": 123,
"filters": {},
"compensationActivity": {
"activity": {
"uniqueIdentifier": "<string>",
"autoUpgradeToLatestVersion": true,
"version": 123
},
"input": {}
}
}
],
"executingAgent": "<string>",
"isActive": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"teamId": "<string>",
"metadata": {}
}