---
title: "Capacities"
method: POST
path: "/capacities"
tags: ["PMS/CM endpoints"]
deprecated: true
---

# Capacities

`POST /capacities`

> **Deprecated.**

**This endpoint is deprecated is favor of more powerful [/planning](#tag/PMSCM-endpoints/operation/planning).** No removal is currently planned. Any new implementations should use [/planning](#tag/PMSCM-endpoints/operation/planning).

Synchronizing available rooms
Usage:
 - called when new hotel is registered
 - periodical synchronization of available space unless push endpoint is used

## Request body

- object
  - `accessToken` string, required — Access token to your API.
  - `hotelId` union, required — Hotel id.
    - string
    - integer
  - `interval` DateInterval, required — DateInterval is [start, end) – end date is exclusive.
    - `start` string, date, required — Start date in the format 'yyyy-mm-dd'.
    - `end` string, date, required — End date in the format 'yyyy-mm-dd'. Exclusive.
  - `roomTypeIds` union[] — Requested room type ids. When not provided, return capacities for all room types of given hotel.
    - union
      - string
      - integer

## Response `200`

Successful response

- SuccessCapacitiesResponse
  - `capacities` Capacity[], required — List of available capacities.
    - `roomTypeId` union, required — Your id of room type.
      - string
      - integer
    - `interval` DateInterval, required — DateInterval is [start, end) – end date is exclusive.
      - `start` string, date, required — Start date in the format 'yyyy-mm-dd'.
      - `end` string, date, required — End date in the format 'yyyy-mm-dd'. Exclusive.
    - `availableRooms` integer, required — Count of free rooms in this interval.

## Other responses

- `400` — Expected error

---

[API](https://skmtc.net/slevomat/apis/termino-hotel-api.md) · [All operations](https://skmtc.net/slevomat/apis/termino-hotel-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/slevomat/termino-hotel-api/versions/776409ba477b/schema)
