POST api/my/basura/bookings/admin/schedules

Request Information

URI Parameters

None.

Body Parameters

BookingsScheduleCreateDTO
NameDescriptionTypeAdditional information
bookingid

integer

None.

schedule

Collection of SchedulesCreateDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "bookingid": 1,
  "schedule": [
    {
      "schedule": "2025-07-13T18:51:56.3924465+08:00"
    },
    {
      "schedule": "2025-07-13T18:51:56.3924465+08:00"
    }
  ]
}

application/xml, text/xml

Sample:
<BookingsScheduleCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.DTO">
  <bookingid>1</bookingid>
  <schedule>
    <SchedulesCreateDTO>
      <schedule>2025-07-13T18:51:56.3924465+08:00</schedule>
    </SchedulesCreateDTO>
    <SchedulesCreateDTO>
      <schedule>2025-07-13T18:51:56.3924465+08:00</schedule>
    </SchedulesCreateDTO>
  </schedule>
</BookingsScheduleCreateDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'BookingsScheduleCreateDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.