Accommodation units
The rooms of each type. With resource_id, a resource from Appointments becomes shared.
Module: Accommodation (accommodation).
Endpoints
Section titled “Endpoints”GET /api/v1/accommodation_units- List with filters, sorting and pagination (scopeaccommodation:read)GET /api/v1/accommodation_units/{id}- A record by id (scopeaccommodation:read)POST /api/v1/accommodation_units- Create a record (scopeaccommodation:write)PATCH /api/v1/accommodation_units/{id}- Modify the submitted fields (scopeaccommodation:write)DELETE /api/v1/accommodation_units/{id}- Delete or deactivate (scopeaccommodation:write)POST /api/v1/accommodation_units/{id}/set_cleaning- The unit’s cleaning status. (scopeaccommodation:write)POST /api/v1/accommodation_units/{id}/export_token- The unit’s iCal export address token. It is secret. (scopeaccommodation:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).location_id(string, uuid; write)name(string; write, required)resource_type(string; read)is_active(boolean; write): Whether the record is active.custom_fields(object; read): Custom fields (key-value object). Definitions are created in the ERP; see the guide on docs.rivil.app.created_at(string, date-time; read): Creation date (ISO 8601).updated_at(string, date-time; read): Last modification date (ISO 8601).code(string; write)description(string; read)access_mode(string; read)used_by(string; read)accommodation_type_id(string, uuid; read)cleaning_state(string; read)type_id(string; write)resource_id(string; write)