PUT Api/Bookings/{id}

Edytuje obiekt Booking

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

identyfikator modyfikowanego obiektu

integer

Required

Body Parameters

obiekt wraz ze wszystkimi wartoĊ›ciami

BookingDto
NameDescriptionTypeAdditional information
BookingId

integer

Required

CreateDate

date

Required

RoomId

integer

Required

ProfileId

string

Required

StartDate

date

Required

EndDate

date

None.

ReservationStatus

boolean

None.

CreatedBy

string

None.

Comment

string

None.

Error

string

None.

RecruitmentProjectId

integer

None.

PersonnelProcessId

integer

None.

WorkerName

string

None.

WorkerSurname

string

None.

WorkerGender

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "bookingId": 1,
  "createDate": "2024-05-18T06:39:43.3910901+00:00",
  "roomId": 3,
  "profileId": "sample string 4",
  "startDate": "2024-05-18T06:39:43.3910901+00:00",
  "endDate": "2024-05-18T06:39:43.3910901+00:00",
  "reservationStatus": true,
  "createdBy": "sample string 6",
  "comment": "sample string 7",
  "error": "sample string 8",
  "recruitmentProjectId": 1,
  "personnelProcessId": 1,
  "workerName": "sample string 9",
  "workerSurname": "sample string 10",
  "workerGender": 1
}

multipart/form-data

Sample:
{"bookingId":1,"createDate":"2024-05-18T06:39:43.3910901+00:00","roomId":3,"profileId":"sample string 4","startDate":"2024-05-18T06:39:43.3910901+00:00","endDate":"2024-05-18T06:39:43.3910901+00:00","reservationStatus":true,"createdBy":"sample string 6","comment":"sample string 7","error":"sample string 8","recruitmentProjectId":1,"personnelProcessId":1,"workerName":"sample string 9","workerSurname":"sample string 10","workerGender":1}

application/xml, text/xml

Sample:
<BookingDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <BookingId>1</BookingId>
  <CreateDate />
  <RoomId>3</RoomId>
  <ProfileId>sample string 4</ProfileId>
  <StartDate />
  <EndDate />
  <ReservationStatus>true</ReservationStatus>
  <CreatedBy>sample string 6</CreatedBy>
  <Comment>sample string 7</Comment>
  <Error>sample string 8</Error>
  <RecruitmentProjectId>1</RecruitmentProjectId>
  <PersonnelProcessId>1</PersonnelProcessId>
  <WorkerName>sample string 9</WorkerName>
  <WorkerSurname>sample string 10</WorkerSurname>
  <WorkerGender>1</WorkerGender>
</BookingDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BookingDto
NameDescriptionTypeAdditional information
BookingId

integer

Required

CreateDate

date

Required

RoomId

integer

Required

ProfileId

string

Required

StartDate

date

Required

EndDate

date

None.

ReservationStatus

boolean

None.

CreatedBy

string

None.

Comment

string

None.

Error

string

None.

RecruitmentProjectId

integer

None.

PersonnelProcessId

integer

None.

WorkerName

string

None.

WorkerSurname

string

None.

WorkerGender

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "bookingId": 1,
  "createDate": "2024-05-18T06:39:43.4067011+00:00",
  "roomId": 3,
  "profileId": "sample string 4",
  "startDate": "2024-05-18T06:39:43.4067011+00:00",
  "endDate": "2024-05-18T06:39:43.4067011+00:00",
  "reservationStatus": true,
  "createdBy": "sample string 6",
  "comment": "sample string 7",
  "error": "sample string 8",
  "recruitmentProjectId": 1,
  "personnelProcessId": 1,
  "workerName": "sample string 9",
  "workerSurname": "sample string 10",
  "workerGender": 1
}

multipart/form-data

Sample:
{"bookingId":1,"createDate":"2024-05-18T06:39:43.4067011+00:00","roomId":3,"profileId":"sample string 4","startDate":"2024-05-18T06:39:43.4067011+00:00","endDate":"2024-05-18T06:39:43.4067011+00:00","reservationStatus":true,"createdBy":"sample string 6","comment":"sample string 7","error":"sample string 8","recruitmentProjectId":1,"personnelProcessId":1,"workerName":"sample string 9","workerSurname":"sample string 10","workerGender":1}

application/xml, text/xml

Sample:
<BookingDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <BookingId>1</BookingId>
  <CreateDate />
  <RoomId>3</RoomId>
  <ProfileId>sample string 4</ProfileId>
  <StartDate />
  <EndDate />
  <ReservationStatus>true</ReservationStatus>
  <CreatedBy>sample string 6</CreatedBy>
  <Comment>sample string 7</Comment>
  <Error>sample string 8</Error>
  <RecruitmentProjectId>1</RecruitmentProjectId>
  <PersonnelProcessId>1</PersonnelProcessId>
  <WorkerName>sample string 9</WorkerName>
  <WorkerSurname>sample string 10</WorkerSurname>
  <WorkerGender>1</WorkerGender>
</BookingDto>