Create A New Layer
create_a_new_layerCreate a new document markup layer within a Procore project context. Provide company, project, name, type, and context IDs to get the layer created with its new ID.
Instructions
Create a new layer within a context. company_id and project_id default to the values set by procore_set_config when omitted. Creates the layer 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, name, type, context_id. Procore API (v2.0): Project Management > Document Markup. Endpoint: POST /rest/v2.0/companies/{company_id}/projects/{project_id}/layers
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | JSON request body field — the name for this Document Markup operation | |
| type | Yes | JSON request body field — the type for this Document Markup operation | |
| settings | No | JSON request body field — the settings for this Document Markup operation | |
| company_id | Yes | URL path parameter — unique identifier of the company | |
| context_id | Yes | JSON request body field — unique identifier of the context | |
| project_id | Yes | URL path parameter — unique identifier of the project | |
| visibility | No | JSON request body field — the visibility for this Document Markup operation | |
| order_index | No | JSON request body field — the order index for this Document Markup operation |