Get Or Create Document Info (V1.1)
get_or_create_document_info_v1_1Get or create a document record in Procore and return essential information without markups. Use for Document Markup operations with company, project, item details.
Instructions
Get or create a document and return only essential document information for UI purposes. This is a lightweight endpoint that doesn't fetch markups. Use this to perform the get 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: Project Management > Document Markup. Endpoint: POST /rest/v1.0/companies/{company_id}/projects/{project_id}/viewer_documents/get_or_create
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 | |
| 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 |