Get Company-Level Layer Structure
get_company_level_layer_structureRetrieve or create the complete hierarchy of contexts, layers, and groups for a company-level document in Procore.
Instructions
Retrieve or create the complete hierarchy (contexts -> layers -> groups) for a company-level document. company_id defaults to the value set by procore_set_config when omitted. Acts on the company-level 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, context_type, context_type_id. Procore API (v2.0): Project Management > Document Markup. Endpoint: POST /rest/v2.0/companies/{company_id}/layer_structure
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | URL path parameter — unique identifier of the company | |
| 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 |