Rename a workflow (JSON Merge Patch).
PATCH/api/v1/workflows/{workflow_id}workflows:manage
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Changes the subject of a workflow you may see. If-Match compares the workflow's stored columns.
| スコープ | workflows:manage |
| 非同期 | いいえ |
| MCP ツール | update_workflow |
| Portal の権限 | rename_workflows |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
workflow_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | WorkflowPatchInput |
application/merge-patch+json | WorkflowPatchInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json Workflow または 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 |
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 のコードです。各コードからそのページに移動できます。
スキーマ
UserRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 必須 | |
kind | string: user, system, integration または string | 必須 | |
user_id | string または null | 必須 |
UserRefInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 任意 | |
kind | string: user, system, integration | 任意 | |
user_id | string または null | 任意 |
Workflow
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
due_at | string (date-time) または null | 必須 | |
is_cancelled | boolean | 必須 | |
is_completed | boolean | 必須 | |
open_action_count | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
open_action_count_for_me | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
recipients | WorkflowRecipient の配列 | 必須 | Who the workflow was sent to (its recipients): the people and groups it shows to, beside the requests it sends them. |
started_at | string (date-time) または null | 必須 | |
started_by | UserRef | 必須 | |
status | string | 必須 | cancelled, failed, in_progress, completed or pending (open enum). |
subject | string | 必須 | |
template_name | string または null | 必須 | |
workflow_id | string | 必須 | |
workflow_template_version_id | string または null | 必須 | The version of the template the workflow runs. |
WorkflowPatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
due_at | string (date-time) または null または null | 任意 | |
is_cancelled | boolean または null | 任意 | |
is_completed | boolean または null | 任意 | |
open_action_count | integer または null | 任意 | |
open_action_count_for_me | integer または null | 任意 | |
recipients | WorkflowRecipientInput の配列 または null | 任意 | |
started_at | string (date-time) または null または null | 任意 | |
started_by | UserRefInput または null | 任意 | |
status | string または null | 任意 | |
subject | string または null | 任意 | |
template_name | string または null または null | 任意 | |
workflow_id | string または null | 任意 | |
workflow_template_version_id | string または null または null | 任意 |
WorkflowRecipient
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
group_id | string または null | 必須 | |
type | string | 必須 | user, group or unknown (open enum). |
type_code | string または null | 必須 | The stored type code, for an unknown recipient type; null otherwise. |
user | UserRef または null | 必須 |
WorkflowRecipientInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
group_id | string または null | 任意 | |
type | string | 任意 | user, group or unknown (open enum). |
type_code | string または null | 任意 | The stored type code, for an unknown recipient type; null otherwise. |
user | UserRefInput または null | 任意 |