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_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | WorkflowTemplatePatchInput |
application/merge-patch+json | WorkflowTemplatePatchInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json WorkflowTemplate または object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | conflict | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
WorkflowTemplate
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
current_workflow_template_version_id | string | 必須 | The version that runs now; a workflow started from the template runs it. |
entity_sub_type | string | 必須 | The document type the template applies to; empty for any. |
entity_type | string | 必須 | The entity the template applies to; empty for any. |
is_active | boolean | 必須 | false when the template cannot be started. |
name | string | 必須 | |
project_id | string または null | 必須 | The project the template applies to; null for any project. |
workflow_template_group_id | string または null | 必須 | The template group it sits in; null for none. |
workflow_template_id | string | 必須 |
WorkflowTemplatePatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvas | object または null または null | 任意 | |
current_workflow_template_version_id | string または null | 任意 | |
entity_sub_type | string または null | 任意 | |
entity_type | string または null | 任意 | |
is_active | boolean または null | 任意 | |
name | string または null | 任意 | |
project_id | string または null | 任意 | |
redacted_count | integer または null | 任意 | |
settings | WorkflowTemplateSettingsPatchInput または null | 任意 | |
steps | WorkflowTemplateStepInput の配列 または null | 任意 | |
workflow_template_group_id | string または null | 任意 | |
workflow_template_id | string または null | 任意 | |
workflow_template_version_id | string または null | 任意 |
WorkflowTemplateSettingsPatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
late_action_request_emails | boolean または null | 任意 | |
late_action_request_send_frequency_seconds | integer または null | 任意 | |
main_item_requires_actions | boolean または null | 任意 | |
notify_owner_about_action_response | boolean または null | 任意 | |
notify_owner_about_completion | boolean または null | 任意 | |
notify_owner_about_late_action_requests | boolean または null | 任意 |
WorkflowTemplateStepInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
inputs | WorkflowTemplateStepSettingInput の配列 | 任意 | |
label | string または null | 任意 | |
node_id | string | 必須 | |
node_type | string | 必須 | The step type, as list_node_types names it (for example StartNode). |
original_node_id | string または null | 任意 | A source step in the visible parent lineage whose unchanged credentials may be retained, independent of step identity. |
outputs | WorkflowTemplateStepOutputInput の配列 | 任意 | |
previous_node_id | string または 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_id | string または null | 任意 | |
type | string | 必須 | |
value | string または null | 任意 |
WorkflowTemplateStepSettingInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
redacted | boolean | 任意 | 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. |
type | string | 必須 | |
value | string または null | 任意 |