Find Or Create An Annotated Document With Markup Context Filtering
find_or_create_an_annotated_document_with_markup_contextFind or create an annotated document for markup, filtered by markup context (WORKFLOW, WORKSPACE, or PIN). Requires company, project, item ID, and item type.
Instructions
Find or create an Annotated Document where markup may be added. Supports filtering by a single markup context (WORKFLOW, WORKSPACE, or PIN). When markup_context is PIN, pin_origin (WORKFLOW or WORKSPACE) is required. Use this to perform the find or action on Document Markup records. Creates a new Document Markup records and returns the created object on success (HTTP 201). Required parameters: company_id, project_id, item_id, item_type. Procore API (v1.1): Project Management > Document Markup. Endpoint: POST /rest/v1.1/companies/{company_id}/projects/{project_id}/viewer_documents
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | URL path parameter — unique identifier for the Procore company | |
| project_id | Yes | URL path parameter — unique identifier for the Procore project | |
| combined_xfdf | No | Query string parameter — the combined xfdf for this Document Markup operation | |
| markup_context | No | Query string parameter — the markup context for this Document Markup operation | |
| pin_origin | No | Query string parameter — the pin origin for this Document Markup operation | |
| item_id | Yes | JSON request body field — unique identifier of the item | |
| item_type | Yes | JSON request body field — the item type for this Document Markup operation | |
| attachment_id | No | JSON request body field — unique identifier of the attachment | |
| attachment_source | No | JSON request body field — the attachment source for this Document Markup operation |