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. <Check title="Required Permissions" icon="key">The user must be an admin or have `project-manage-config:write` permissions.</Check>

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

workflowIdstringRequiredformat: "uuid"

Request

This endpoint expects an object.
deleteOperationstring or nullOptional
Defines how linked projects and project templates should be handled before deletion. Supported values are 'unlink' and 'migrate'.
newWorkflowIdstring or nullOptionalformat: "uuid"
The workflow to migrate linked projects and project templates to. Required when DeleteOperation is 'migrate'.
projectStatusMappinglist of objects or nullOptional
Maps source workflow project statuses to target workflow project statuses during migration.
taskStatusMappinglist of objects or nullOptional
Maps source workflow task statuses to target workflow task statuses during migration.
keepCustomFieldsboolean or nullOptional

Whether to keep existing non-workflow custom fields when migrating. Default: true.

keepCustomAutomationsboolean or nullOptional

Whether to keep existing non-workflow automations when migrating. Default: true.

Response

No Content

Errors

400
Bad Request Error
404
Not Found Error