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": "6be9231d-1145-4af3-8494-9166084a5427",
"TimebookReservationDate": "2026-01-21 22:50:34",
"EventId": 3,
"BranchCalendarId": 4,
"TimebookReservationDepartmentId": "c6b50696-2078-42d7-a679-b0c56fd46fe1",
"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>6be9231d-1145-4af3-8494-9166084a5427</StorageCardId> <TimebookReservationDate>2026-01-21T22:50:34.8827789+01:00</TimebookReservationDate> <TimebookReservationDepartmentId>c6b50696-2078-42d7-a679-b0c56fd46fe1</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.