Skip to content

Accommodation units

The rooms of each type. With resource_id, a resource from Appointments becomes shared.

Module: Accommodation (accommodation).

  • GET /api/v1/accommodation_units - List with filters, sorting and pagination (scope accommodation:read)
  • GET /api/v1/accommodation_units/{id} - A record by id (scope accommodation:read)
  • POST /api/v1/accommodation_units - Create a record (scope accommodation:write)
  • PATCH /api/v1/accommodation_units/{id} - Modify the submitted fields (scope accommodation:write)
  • DELETE /api/v1/accommodation_units/{id} - Delete or deactivate (scope accommodation:write)
  • POST /api/v1/accommodation_units/{id}/set_cleaning - The unit’s cleaning status. (scope accommodation:write)
  • POST /api/v1/accommodation_units/{id}/export_token - The unit’s iCal export address token. It is secret. (scope accommodation:write)
  • 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)