Get Complete Layer Structure By Context Type And Type ID
get_complete_layer_structure_by_context_type_and_type_idRetrieve or create the full layer structure for Document Markup by specifying context type and ID. Returns contexts, layers, and groups hierarchy.
Instructions
Retrieve the complete hierarchy (contexts → layers → groups) based on context_type and context_type_id. If no context exists, creates default context with user's private layer and returns the structure. Use this to perform the get complete 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, context_type, context_type_id. Procore API: Project Management > Document Markup. Endpoint: POST /rest/v1.0/companies/{company_id}/projects/{project_id}/layer_structure
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 | |
| context_type | Yes | JSON request body field — the context type 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 | |
| include_groups | No | JSON request body field — the include groups for this Document Markup operation |