Get Complete Layer Structure
get_complete_layer_structureGet or create the complete context-layer-group hierarchy for a Procore project via Document Markup API. Uses context type and ID, returns Procore's response or error status.
Instructions
Retrieve or create the complete hierarchy (contexts -> layers -> groups) by context type. company_id and project_id default to the values set by procore_set_config when omitted. Acts on the complete layer structure and returns Procore's response for the operation. 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, context_type, context_type_id. Procore API (v2.0): Project Management > Document Markup. Endpoint: POST /rest/v2.0/companies/{company_id}/projects/{project_id}/layer_structure
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | URL path parameter — unique identifier of the company | |
| project_id | Yes | URL path parameter — unique identifier of the project | |
| context_type | Yes | JSON request body field — the context type for this Document Markup operation | |
| include_groups | No | JSON request body field — the include groups for this Document Markup operation | |
| context_type_id | Yes | JSON request body field — unique identifier of the context type | |
| sub_context_type | No | JSON request body field — the sub context type for this Document Markup operation | |
| sub_context_type_id | No | JSON request body field — unique identifier of the sub context type |