Create A New Company-Level Context
create_a_new_company_level_contextCreate a new company-level context for organizing layers in document markup. Specify company_id, name, context_type, and context_type_id to generate a new context record.
Instructions
Create a new context for organizing layers within a company-level document. company_id defaults to the value set by procore_set_config when omitted. Creates the company-level context 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, name, context_type, context_type_id. Procore API (v2.0): Project Management > Document Markup. Endpoint: POST /rest/v2.0/companies/{company_id}/contexts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | JSON request body field — the name 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_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 |