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

# Occupations (push)

`POST /occupations-update`

Synchronization of changed reservations on the hotel side.

**It is deprecated to send updates for other reservations then those created by Termino/Slevomat.** 

Usage:

 - Partner changes Slevomat reservation in their system and this endpoint is called to update the reservation in Termino/Slevomat
 - **Deprecated** Pushing blockage and reservation updates when using pull endpoint [/occupations](#tag/Pull-endpoints/operation/occupations)


Updates of occupations in multiple hotels has to be sent in multiple requests.

## Request body

- object
  - `accessToken` string, required — Access token to your API.
  - `hotelId` union, required — Hotel id.
    - string
    - integer
  - `occupations` Occupation[], required — List of updated occupations.
    - `id` union, required — Your occupation id.
      - string
      - integer
    - `type` 'reservation', required — Type of occupation. `reservation` is only supported value, `blockage` is deprecated and ignored.
    - `status` string — Reservation status; optional and ignored for blockages.
    - `roomId` union, required — Your room id.
      - string
      - integer
    - `created` string, date-time, required — Creation date and time in ISO 8601 format.
    - `term` 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'.

## Response `200`

Successful response

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

## Other responses

- `400` — Expected error

## Changes

- **2023-10-30** `e19082e0fb0f` — 1 breaking, 1 warning, 3 info
  - the request property `occupations/items/roomId` became required
  - removed the request property `occupations/items/roomTypeId`
  - api tag `Push endpoints` added
  - api tag `Termino endpoints` removed
  - …1 more

[Change history](https://skmtc.dev/slevomat/apis/termino-hotel-api/changes/occupations-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)
