メインコンテンツまでスキップ

Change a workflow template's details, active flag or settings (JSON Merge Patch).

PATCH/api/v1/workflow-templates/{workflow_template_id}workflows:author
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Only the members sent change. The name, type, project, group and active flag change the template in place. Settings are saved as a new version, as its Start step holds them; settings that already hold the sent values are refused. If-Match compares the template's stored columns and its running version.

スコープworkflows:author
非同期いいえ
MCP ツールupdate_workflow_template
Portal の権限edit_workflow_templates

パラメーター​

名前場所型必須説明
workflow_template_idpathstring必須
Docwize-Versionheaderstring (date)任意
If-Matchheaderstring任意

リクエスト本文​

Content-Type型
application/jsonWorkflowTemplatePatchInput
application/merge-patch+jsonWorkflowTemplatePatchInput

応答​

ステータス説明本文
200Success.application/json WorkflowTemplate または 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
409conflictapplication/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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

WorkflowTemplate​

フィールド型必須説明
current_workflow_template_version_idstring必須The version that runs now; a workflow started from the template runs it.
entity_sub_typestring必須The document type the template applies to; empty for any.
entity_typestring必須The entity the template applies to; empty for any.
is_activeboolean必須false when the template cannot be started.
namestring必須
project_idstring または null必須The project the template applies to; null for any project.
workflow_template_group_idstring または null必須The template group it sits in; null for none.
workflow_template_idstring必須

WorkflowTemplatePatchInput​

フィールド型必須説明
canvasobject または null または null任意
current_workflow_template_version_idstring または null任意
entity_sub_typestring または null任意
entity_typestring または null任意
is_activeboolean または null任意
namestring または null任意
project_idstring または null任意
redacted_countinteger または null任意
settingsWorkflowTemplateSettingsPatchInput または null任意
stepsWorkflowTemplateStepInput の配列 または null任意
workflow_template_group_idstring または null任意
workflow_template_idstring または null任意
workflow_template_version_idstring または null任意

WorkflowTemplateSettingsPatchInput​

フィールド型必須説明
late_action_request_emailsboolean または null任意
late_action_request_send_frequency_secondsinteger または null任意
main_item_requires_actionsboolean または null任意
notify_owner_about_action_responseboolean または null任意
notify_owner_about_completionboolean または null任意
notify_owner_about_late_action_requestsboolean または null任意

WorkflowTemplateStepInput​

フィールド型必須説明
inputsWorkflowTemplateStepSettingInput の配列任意
labelstring または null任意
node_idstring必須
node_typestring必須The step type, as list_node_types names it (for example StartNode).
original_node_idstring または null任意A source step in the visible parent lineage whose unchanged credentials may be retained, independent of step identity.
outputsWorkflowTemplateStepOutputInput の配列任意
previous_node_idstring または null任意The step's node_id in the version it was copied from, so it keeps its identity; null for a new step.

WorkflowTemplateStepOutputInput​

フィールド型必須説明
response_node_idstring または null任意
typestring必須
valuestring または null任意

WorkflowTemplateStepSettingInput​

フィールド型必須説明
redactedboolean任意true when the value is a redacted credential the read replaced. Send it back as the marker to keep the credential the step it continues stores (previous_node_id); a marker on a step with no stored credential is refused.
typestring必須
valuestring または null任意