Bulk-Create Groups In A Layer
bulk_create_groups_in_a_layerCreate multiple groups in a layer in a single request instead of looping individual API calls. Send all groups at once and check each result for independent success or failure.
Instructions
Create multiple groups in a single layer atomically. Replaces the N-round-trip pattern of looping the per-item POST /groups endpoint. Prefer this over repeated single-record calls when handling many bulk-create groups at once. company_id and project_id default to the values set by procore_set_config when omitted, and layer_id must identify an existing parent record — resolve it with the matching list tool first. Processes every supplied record in one request and returns the resulting collection; individual entries can fail independently, so check each one. 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, layer_id, groups. Procore API: Project Management > Document Markup. Endpoint: POST /rest/v1.0/companies/{company_id}/projects/{project_id}/layers/{layer_id}/groups/bulk
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | Yes | JSON request body field — the groups for this Document Markup operation | |
| layer_id | Yes | URL path parameter — unique identifier of the layer | |
| company_id | Yes | URL path parameter — unique identifier for the Procore company | |
| project_id | Yes | URL path parameter — unique identifier for the Procore project |