POST api/resource/booking?retrospectiveBooking={retrospectiveBooking}

Adds/Edits a resource booking in the Resource Manager

Request Information

URI Parameters

NameDescriptionTypeAdditional information
retrospectiveBooking

Permit Bookings before curent date

boolean

Default value is False

Body Parameters

The details of the resource booking

Booking
NameDescriptionTypeAdditional information
user

string

None.

identifierType

string

None.

resourceEvent

string

None.

eventIdentifierType

string

None.

startTime

string

None.

endTime

string

None.

comment

string

None.

taskID

integer

None.

hoursPerDay

decimal number

None.

timesheet

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "user": "sample string 1",
  "identifierType": "sample string 2",
  "resourceEvent": "sample string 3",
  "eventIdentifierType": "sample string 4",
  "startTime": "sample string 5",
  "endTime": "sample string 6",
  "comment": "sample string 7",
  "taskID": 8,
  "hoursPerDay": 9.1,
  "timesheet": true
}

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 'Booking'.

Response Information

Resource Description

The resultant task ID, and booking ID

BookingCTO
NameDescriptionTypeAdditional information
taskID

integer

None.

bookingID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "taskID": 1,
  "bookingID": 2
}