Operation

Information of the operation

Only accessible with permission of pms.integration.reservation


table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



PUT



https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/reservationRoomStay/{reservationRoomStayId}/reservationRoomStayGuest/{reservationRoomStayGuestId}



Request

PropertyTypeRequiredType parameterDefault valueDescription

chainId

Integertruepath parameter

propertyIdInteger
path parameter

reservationRoomStayIdInteger
path parameter

reservationRoomStayGuestIdInteger
path parameter

fieldNamesListList<String>
request parameter
List of fields that has to be updated. If we don't receive that object, we update all ReservationRoomStayGuest fields.


Example request

PUT https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/reservationRoomStay/1/reservationRoomStayGuest/1



Body

An array of elements of type ReservationRoomStayGuest.


Example body

{
	"id": 2,
	"documentType": {
		"id": 2,
		"code": "2",
		"name": "Passport"
	},
	"documentNumber": "swgcACUU",
	"givenName": "Marie",
	"secondSurName": "Mélodie",
	"surName": "Hunt",
	"genderType": {
		"id": 1,
		"code": "M",
		"name": "Male"
	},
	"birthDate": "2002-02-13",
	"birthCountryCode": "VU",
	"birthPlace": "Memphis",
	"effectiveDate": "2019-02-13",
	"expireDate": "2019-02-13",
	"street": "2603 Cherokee Drive",
	"city": "Memphis",
	"stateProvName": "Tennessee",
	"stateProvCode": null,
	"countryCode": "VU",
	"postalCode": "38104",
	"nationalityCountryCode": "VU",
	"countryOfIssuanceCode": "Es",
	"ocr": null,
	"email": "bhernandezo@instagram.com",
	"phoneNumber": "1-(901)206-4293",
    "allowMarketing" :true,
    "allowThirdParty" :false,
    "language": {
        "id": 1,
        "code": "ES",
        "name": "Spanish"
    }
}


Response

A success or error message.

Example response

{
  "httpStatus": "201",
  "userMessage": "Success",
  "technicalMessage": "Success ReservationRoomStay guest updated",
  "errorCode": "0",
  "id": 1	
}