Bulk Update Hazards
bulk_update_hazardsUpdate active status for multiple hazards in a single request, reducing API calls. Provide company ID, hazard IDs, and optional active flag.
Instructions
Updates the active status for multiple hazards in a single request. Prefer this over repeated single-record calls when handling many hazards at once. Pass the record's fields as top-level arguments — they are nested under "hazard" in the request payload for you. company_id defaults to the value set by procore_set_config when omitted. Returns the modified hazard on success. 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. Procore API: Project Management > Incidents. Endpoint: PATCH /rest/v1.0/companies/{company_id}/hazards/bulk_update
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | JSON request body field — the ids for this Incidents operation | |
| active | No | JSON request body field — whether the specified hazards should be active (available for selection) or inactive. | |
| company_id | Yes | URL path parameter — unique identifier for the company. |