POST api/Bookings
POST: api/Bookings<br/> Adds a new booking using the <para>bookingData</para>.<br/>
Request Information
URI Parameters
None.
Body Parameters
BookingData
BookingRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| StorageCardId | globally unique identifier |
Required |
|
| TimebookReservationDate | date |
Required |
|
| EventId | integer |
Required |
|
| BranchCalendarId | integer |
Required |
|
| TimebookReservationDepartmentId | globally unique identifier |
None. |
|
| InternalNote | string |
Max length: 4000 |
|
| ExternalNote | string |
Max length: 4000 |
Remarks
None.
Example
None.
Request Formats
application/json, text/json
Sample:
{
"StorageCardId": "08e65afb-1783-4161-a9ff-9b6e3c26608c",
"TimebookReservationDate": "2026-06-12 18:21:23",
"EventId": 3,
"BranchCalendarId": 4,
"TimebookReservationDepartmentId": "f5f4465e-5a07-4a59-a15e-2f2e453b842e",
"InternalNote": "sample string 5",
"ExternalNote": "sample string 6"
}
application/xml, text/xml
Sample:
<BookingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.TyreHotel"> <BranchCalendarId>4</BranchCalendarId> <EventId>3</EventId> <ExternalNote>sample string 6</ExternalNote> <InternalNote>sample string 5</InternalNote> <StorageCardId>08e65afb-1783-4161-a9ff-9b6e3c26608c</StorageCardId> <TimebookReservationDate>2026-06-12T18:21:23.568671+02:00</TimebookReservationDate> <TimebookReservationDepartmentId>f5f4465e-5a07-4a59-a15e-2f2e453b842e</TimebookReservationDepartmentId> </BookingRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BookingData as IHttpActionResult
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.