Create Group And Move Markups
create_group_and_move_markupsCreates a markup group and moves specified markups into it within a Procore document. Use company, project, viewer document, and source group IDs to complete the operation.
Instructions
Creates a new group and moves specified markups to it. company_id and project_id default to the values set by procore_set_config when omitted, and viewer_doc_id must identify an existing parent record — resolve it with the matching list tool first. Creates the group and move markup and returns it with its new id (HTTP 201); calling it again creates another record. Failures come back as an error payload carrying the HTTP status — commonly 401 when the token has expired, 403 without tool permission, and 404 when an id does not resolve. Required parameters: company_id, project_id, viewer_doc_id, source_group_id. Procore API (v2.0): Project Management > Document Markup. Endpoint: POST /rest/v2.0/companies/{company_id}/projects/{project_id}/viewer_documents/{viewer_doc_id}/markups/groups
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | JSON request body field — the action for this Document Markup operation | |
| pin_id | No | JSON request body field — unique identifier of the pin | |
| company_id | Yes | URL path parameter — unique identifier of the company | |
| markup_ids | No | JSON request body field — array of markup identifiers | |
| project_id | Yes | URL path parameter — unique identifier of the project | |
| viewer_doc_id | Yes | URL path parameter — unique identifier of the viewer document | |
| escalate_to_pin | No | JSON request body field — the escalate to pin for this Document Markup operation | |
| source_group_id | Yes | JSON request body field — unique identifier of the source group |