Link an uploaded document to an action request.
POST/api/v1/action-requests/{action_request_id}/attachment-linksworkflows:decide
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.
| Scope | workflows:decide |
| Asynchronous | No |
| MCP tool | create_action_request_attachment_link |
| Portal permissions | create_workflow_attachment_links |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
action_request_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | ActionRequestAttachmentLinkCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json ActionRequestAttachmentLink or 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 |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
ActionRequestAttachmentLink
| Field | Type | Required | Description |
|---|---|---|---|
action_request_id | string | Required | |
attachment_link_id | string | Required | |
document_id | string or null | Required | The uploaded document; null when you may not read it. |
is_sub_workflow_completed | boolean | Required | |
processing_status | string | Required | 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 or null | Required | The sub-workflow the upload started; null when none, or when you may not open it. |
sub_workflow_completed_at | string (date-time) or null | Required | |
upload_slot_id | string or null | Required | The slot the upload belongs to; null for an upload linked to no slot. |
uploaded_at | string (date-time) or null | Required | |
uploaded_by | UserRef | Required |
ActionRequestAttachmentLinkCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
document_id | string | Required | The uploaded document (create it first, as an attachment of the request's document or on its own). |
upload_slot_id | string or null | Optional | The slot the file was uploaded against, from list_action_request_upload_slots; leave out for an upload no slot asked for. |
UserRef
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required |