Hotel

Attaches a file to a hotel

post/postFile

Request

  • Base URL
    https://api.cloudbeds.com/api/v1.3
  • URL
    https://api.cloudbeds.com/api/v1.3/postFile
  • Auth
    • API key in header x-api-key
    • or OAuth 2
      Authorization code
      Scopes: write:hotel

Request body application/x-www-form-urlencoded

propertyIDstring nullable

Property ID

filestring binary

Form-based File Upload<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json</code><br/> Allowed max file size: 100MB

eventCodestring nullable

optional - the event (group profile) code if the file is to be attached to a group profile

Response

200 Response

successboolean

Returns if the request could be completed

messagestring nullable

To be used in case any error occurs (if success = false). If success = true, it does not exist.

Changes