# Create/Update occupancy monitor Update an occupancy monitor if it exists, create a new one otherwise. Endpoint: PUT /occupancy-monitors Version: 0.0.1 Security: o_auth ## Request fields (application/json): - `capacity` (integer,null) Example: 100 - `dailyResetMin` (integer, required) - `id` (string,null) - `name` (string, required) - `reportingEndDate` (string,null) - `reportingStartDate` (string,null) - `siteId` (string, required) - `state` (string) Enum: "active", "deleted" ## Response 201 fields (application/json): - `capacity` (integer,null) Example: 100 - `dailyResetMin` (integer, required) - `deletedAt` (string,null) - `id` (string,null) - `name` (string, required) - `reportingEndDate` (string,null) - `reportingStartDate` (string,null) - `siteId` (string, required) - `state` (string) Enum: "active", "deleted" ## 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