POST /api/Hotels/{id}/images

Path parameters

  • id string(uuid) Required

    The id of the hotel to upload image

Query parameters

  • alternativeText string

    Alternative Text(Alt)

  • thumbnail boolean

    indicates if the image should be used as thumbnail

    Default value is false.

multipart/form-data

Body

  • file string(binary)

Responses

  • 200

    Success

  • 204

    If the image is successfully uploaded

  • 400

    If the request data is invalid

  • 401

    If the user is not authenticated

  • 403

    If the user is not authorized (not an admin)

  • 404

    If the hotel is not found

POST /api/Hotels/{id}/images
curl \
 -X POST http://api.example.com/api/Hotels/{id}/images \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: multipart/form-data" \
 -F "file=@file"