Skip to main content

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.

Scopeworkflows:decide
AsynchronousNo
MCP toolcreate_action_request_attachment_link
Portal permissionscreate_workflow_attachment_links

Parameters​

NameInTypeRequiredDescription
action_request_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonActionRequestAttachmentLinkCreateInput

Responses​

StatusDescriptionBody
201Success.application/json ActionRequestAttachmentLink or 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
409conflict, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

FieldTypeRequiredDescription
action_request_idstringRequired
attachment_link_idstringRequired
document_idstring or nullRequiredThe uploaded document; null when you may not read it.
is_sub_workflow_completedbooleanRequired
processing_statusstringRequiredpending, processing, completed or error (open enum): the Portal's work on the link, which starts the slot's sub-workflow.
spawned_workflow_idstring or nullRequiredThe sub-workflow the upload started; null when none, or when you may not open it.
sub_workflow_completed_atstring (date-time) or nullRequired
upload_slot_idstring or nullRequiredThe slot the upload belongs to; null for an upload linked to no slot.
uploaded_atstring (date-time) or nullRequired
uploaded_byUserRefRequired

ActionRequestAttachmentLinkCreateInput​

FieldTypeRequiredDescription
document_idstringRequiredThe uploaded document (create it first, as an attachment of the request's document or on its own).
upload_slot_idstring or nullOptionalThe slot the file was uploaded against, from list_action_request_upload_slots; leave out for an upload no slot asked for.

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired