---
title: "Capacities (push)"
method: POST
path: "/capacities-update"
tags: ["Push endpoints"]
---

# Capacities (push)

`POST /capacities-update`

Synchronization of changed capacities

Usage:


 - CM / PMS pushes capacity changes to Termino

## Request body

- object
  - `accessToken` string, required — Access token to your API.
  - `hotelId` union, required — Your hotel id.
    - string
    - integer
  - `capacities` Capacity[], required — List of updated capacities.
    - `roomTypeId` union, required — Your id of room type.
      - string
      - integer
    - `interval` DateInterval, required
      - `start` string, date, required — Start date in the format 'yyyy-mm-dd'.
      - `end` string, date, required — End date in the format 'yyyy-mm-dd'.
    - `availableRooms` integer, required — Count of free rooms in this interval.

## Response `200`

Successful response

- SuccessResponse
  - `success` boolean, required — Always true.

## Changes

- **2023-10-30** `e19082e0fb0f` — 3 info
  - api tag `Push endpoints` added
  - api tag `Termino endpoints` removed
  - endpoint reactivated

[Change history](https://skmtc.dev/slevomat/apis/termino-hotel-api/changes/capacities-update/post.md)

---

[API](https://skmtc.dev/slevomat/apis/termino-hotel-api.md) · [All operations](https://skmtc.dev/slevomat/apis/termino-hotel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/slevomat/termino-hotel-api/revisions/e19082e0fb0f/schema)
