POST
/
api
/
reservation
/
{reservationId}
/
split
curl --request POST \
  --url http://localhost/api/reservation/{reservationId}/split \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "startTime": "2023-11-07T05:31:56Z",
  "endTime": "2023-11-07T05:31:56Z"
}'
{
  "totalElements": 123,
  "totalPages": 123,
  "size": 123,
  "content": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "deskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "departmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "startTime": "2023-11-07T05:31:56Z",
      "endTime": "2023-11-07T05:31:56Z",
      "type": "shared"
    }
  ],
  "number": 123,
  "sort": [
    {
      "direction": "<string>",
      "nullHandling": "<string>",
      "ascending": true,
      "property": "<string>",
      "ignoreCase": true
    }
  ],
  "first": true,
  "last": true,
  "numberOfElements": 123,
  "pageable": {
    "offset": 123,
    "sort": [
      {
        "direction": "<string>",
        "nullHandling": "<string>",
        "ascending": true,
        "property": "<string>",
        "ignoreCase": true
      }
    ],
    "pageSize": 123,
    "pageNumber": 123,
    "paged": true,
    "unpaged": true
  },
  "empty": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

reservationId
string
required

Body

application/json
startTime
string
endTime
string

Response

200
*/*
Reservation successfully split
totalElements
integer
totalPages
integer
size
integer
content
object[]
number
integer
sort
object[]
first
boolean
last
boolean
numberOfElements
integer
pageable
object
empty
boolean