Link an uploaded document to an action request.
POST/api/v1/action-requests/{action_request_id}/attachment-linksworkflows:decide
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Records that a document is the answer's file for a slot, and starts the slot's sub-workflow on it when the slot has one, as the Inbox does after an upload. Only for an open request addressed to you or a group of yours, and a document you may read. Create the document first; replying with a required upload needs a link for every required slot.
| スコープ | workflows:decide |
| 非同期 | いいえ |
| MCP ツール | create_action_request_attachment_link |
| Portal の権限 | create_workflow_attachment_links |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
action_request_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | ActionRequestAttachmentLinkCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
201 | Success. | application/json ActionRequestAttachmentLink または 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, idempotency_in_progress | 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 | idempotency_key_reused, 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 のコードです。各コードからそのページに移動できます。
スキーマ
ActionRequestAttachmentLink
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
action_request_id | string | 必須 | |
attachment_link_id | string | 必須 | |
document_id | string または null | 必須 | The uploaded document; null when you may not read it. |
is_sub_workflow_completed | boolean | 必須 | |
processing_status | string | 必須 | pending, processing, completed or error (open enum): the Portal's work on the link, which starts the slot's sub-workflow. |
spawned_workflow_id | string または null | 必須 | The sub-workflow the upload started; null when none, or when you may not open it. |
sub_workflow_completed_at | string (date-time) または null | 必須 | |
upload_slot_id | string または null | 必須 | The slot the upload belongs to; null for an upload linked to no slot. |
uploaded_at | string (date-time) または null | 必須 | |
uploaded_by | UserRef | 必須 |
ActionRequestAttachmentLinkCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
document_id | string | 必須 | The uploaded document (create it first, as an attachment of the request's document or on its own). |
upload_slot_id | string または null | 任意 | The slot the file was uploaded against, from list_action_request_upload_slots; leave out for an upload no slot asked for. |
UserRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 必須 | |
kind | string: user, system, integration または string | 必須 | |
user_id | string または null | 必須 |