Deletes a workflow. If the workflow is linked to projects or project templates they can either be unlinked or migrated to another workflow before the workflow is deleted.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
workflowIdstringRequiredRequest body Required
application/json
deleteOperationstring or nullOptionalDefines how linked projects and project templates should be handled before deletion. Supported values are 'unlink' and 'migrate'.
newWorkflowIdstring or nullOptionalThe workflow to migrate linked projects and project templates to. Required when DeleteOperation is 'migrate'.
projectStatusMappingarray of object or nullOptionalMaps source workflow project statuses to target workflow project statuses during migration.
Show 2 properties
oldProjectStatusIdstringRequiredThe Id of the existing project status to replace.
newProjectStatusIdstringRequiredThe Id of the workflow project status to use instead.
taskStatusMappingarray of object or nullOptionalMaps source workflow task statuses to target workflow task statuses during migration.
Show 2 properties
oldTaskStatusIdstringRequiredThe Id of the existing task status to replace.
newTaskStatusIdstringRequiredThe Id of the workflow task status to use instead.
keepCustomFieldsboolean or nullOptionalWhether to keep existing non-workflow custom fields when migrating. Default: true.
keepCustomAutomationsboolean or nullOptionalWhether to keep existing non-workflow automations when migrating. Default: true.
Responses
204 No Content
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.