Upload file to ReservationRoomStay [POST]

Operation

This endpoint allows the user to upload a file (document, image, etc) to a reservationRoomStay.

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


Request

PropertyTypeRequiredType parameterDefault valueDescription

chainId

Integertruepath parameter

propertyIdIntegertruepath parameter

reservationRoomStayIdIntegertruepath parameter

remarkStringfalserequest parameter
Description of the file.

Example request

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


Body

A multipart file called "file".

Response

A success or error message.

Example response

{
	"httpStatus": "201",
	"userMessage": "Successfully uploaded 1/2/documents/c288ae87-042a-43e1-a63c-d7ab4865089c.pdf",
	"technicalMessage": "Successfully uploaded 1/2/documents/c288ae87-042a-43e1-a63c-d7ab4865089c.pdf and created ReservationRoomStayDocument",
	"errorCode": "200",
	"moreInfo": "",
	"id": 15,
	"entity": {
		"id": 15,
		"createdDate": "2019-07-22T13:49:02.127Z",
		"createdUser": 14,
		"name": "1/2/documents/c288ae87-042a-43e1-a63c-d7ab4865089c.pdf",
		"title": "countryByRate.pdf",
		"extension": "pdf",
		"sizeInKb": 0
	}
}