Skip to main content

Link a document to a transmittal as a drawing.

POST/api/v1/documents/{document_id}/drawingsdocuments:write

The document in the path is the transmittal; drawing_id is the document to link. Needs Create Document Transmittals, View Document Metadata and an edit grant on the transmittal, and the caller must be able to read the drawing (422 reference_forbidden otherwise). A drawing already linked is 409 already_exists.

Scopedocuments:write
AsynchronousNo
MCP toolcreate_document_drawing
Portal permissionscreate_document_transmittals, view_document_metadata

Parameters​

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

Request body​

Content typeType
application/jsonDocumentDrawingCreateInput

Responses​

StatusDescriptionBody
201Success.application/json DocumentDrawingLink 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
409already_exists, 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​

DocumentDrawingCreateInput​

FieldTypeRequiredDescription
drawing_idstringRequiredThe document to link to the transmittal.
FieldTypeRequiredDescription
document_idstringRequiredThe transmittal.
drawing_idstringRequiredThe linked document.