Skip to main content

Rename a workflow (JSON Merge Patch).

PATCH/api/v1/workflows/{workflow_id}workflows:manage

Changes the subject of a workflow you may see. If-Match compares the workflow's stored columns.

Scopeworkflows:manage
AsynchronousNo
MCP toolupdate_workflow
Portal permissionsrename_workflows

Parameters​

NameInTypeRequiredDescription
workflow_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonWorkflowPatchInput
application/merge-patch+jsonWorkflowPatchInput

Responses​

StatusDescriptionBody
200Success.application/json Workflow or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired

UserRefInput​

FieldTypeRequiredDescription
display_namestringOptional
kindstring: user, system, integrationOptional
user_idstring or nullOptional

Workflow​

FieldTypeRequiredDescription
due_atstring (date-time) or nullRequired
is_cancelledbooleanRequired
is_completedbooleanRequired
open_action_countintegerRequired≥ -2147483648; ≤ 2147483647
open_action_count_for_meintegerRequired≥ -2147483648; ≤ 2147483647
recipientsarray of WorkflowRecipientRequiredWho the workflow was sent to (its recipients): the people and groups it shows to, beside the requests it sends them.
started_atstring (date-time) or nullRequired
started_byUserRefRequired
statusstringRequiredcancelled, failed, in_progress, completed or pending (open enum).
subjectstringRequired
template_namestring or nullRequired
workflow_idstringRequired
workflow_template_version_idstring or nullRequiredThe version of the template the workflow runs.

WorkflowPatchInput​

FieldTypeRequiredDescription
due_atstring (date-time) or null or nullOptional
is_cancelledboolean or nullOptional
is_completedboolean or nullOptional
open_action_countinteger or nullOptional
open_action_count_for_meinteger or nullOptional
recipientsarray of WorkflowRecipientInput or nullOptional
started_atstring (date-time) or null or nullOptional
started_byUserRefInput or nullOptional
statusstring or nullOptional
subjectstring or nullOptional
template_namestring or null or nullOptional
workflow_idstring or nullOptional
workflow_template_version_idstring or null or nullOptional

WorkflowRecipient​

FieldTypeRequiredDescription
group_idstring or nullRequired
typestringRequireduser, group or unknown (open enum).
type_codestring or nullRequiredThe stored type code, for an unknown recipient type; null otherwise.
userUserRef or nullRequired

WorkflowRecipientInput​

FieldTypeRequiredDescription
group_idstring or nullOptional
typestringOptionaluser, group or unknown (open enum).
type_codestring or nullOptionalThe stored type code, for an unknown recipient type; null otherwise.
userUserRefInput or nullOptional