api-v1-unit_groups

Destroy one or more unit groups

Discussion

This endpoint is only available if the facility has custom unit groups enabled.

This endpoint can delete multiple unit groups at once by providing a unit_groups array of objects with the id parameter. Any Channel Rates associated with the Unit Groups will be deleted along with those Unit Groups. The unit_group_id for Units that correspond to Unit Groups being deleted will be set to null.

Common errors that may be encountered:

  • All Unit group ids must be valid. If any id doesn't correspond to a unit group in the given facility a Record not found error will be returned.
delete/v1/{facility_id}/unit_groups

Path parameters

facility_idnumber required

Request body

unit_groupsstring[] required

Array of Unit Group objects

Response

ok

Changes

No recorded changes to this endpoint across all 1 revision of this API.