# Create/Update alert Update an alert if it exists, create a new one otherwise. Endpoint: PUT /alerts Version: 0.0.1 Security: o_auth ## Request fields (application/json): - `alertType` (string, required) Enum: "offline_alert", "occupancy_alert", "camera_health_summary_alert", "people_count" - `configurationDetails` (object) - `emails` (array,null) - `id` (string,null) - `name` (string, required) - `organisationId` (string, required) - `siteId` (string,null) - `state` (string) Enum: "active", "deleted" - `webhook` (object) ## Response 201 fields (application/json): - `alertType` (string, required) Enum: "offline_alert", "occupancy_alert", "camera_health_summary_alert", "people_count" - `configurationDetails` (object) - `createdAt` (string) - `deletedAt` (string,null) - `emails` (array,null) - `id` (string,null) - `name` (string, required) - `organisationId` (string, required) - `siteId` (string,null) - `state` (string) Enum: "active", "deleted" - `webhook` (object) ## Response 400 fields (application/json): - `code` (integer) - `message` (string) ## Response 401 fields (application/json): - `code` (integer) - `message` (string) ## Response 403 fields (application/json): - `code` (integer) - `message` (string) ## Response 410 fields (application/json): - `code` (integer) - `message` (string) ## Response 422 fields (application/json): - `code` (integer) - `message` (string) ## Response 204 fields ## Response 500 fields ## Response 501 fields