PUT
/demandshopUpdate Demand Shop
Update demand shop
Implementation Notes
This API call allows the user to modify the details of an existing Demand Shop linked to a demandShopId.
PUT
/demandshopParameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
demandShopId | query | integer | Required | Unique identifier for the Hotel Demand Shop. |
body | body | object | Required | none |
» shopName | body | string | Optional | none |
» hotelCode | body | integer | Optional | none |
» city | body | string | Optional | none |
» country | body | string | Optional | none |
» startDate | body | string(date) | Optional | none |
» horizon | body | integer | Optional | none |
» estimatedAttendee | body | string | Optional | none |
» category | body | string | Optional | none |
» subCategory | body | string | Optional | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | |
| 400 | Bad Request | Bad Request | None |
| 401 | Unauthorized | Unauthorized | None |
| 403 | Forbidden | Forbidden | None |
| 404 | Not Found | Not Found | None |
| 429 | Too Many Requests | Too Many Requests | None |
| 500 | Internal Server Error | Internal Server Error. | None |
Example Request
# You can also use wget
curl -X PUT https://api.events.example.com/api/v1/demandshop?demandShopId=1 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
Body parameter
{
"shopName": "",
"hotelCode": 0,
"city": "",
"country": "",
"startDate": "2019-08-24",
"horizon": 0,
"estimatedAttendee": "",
"category": "0",
"subCategory": "0"
}
Example responses
200 Response
{
"message": "Shop details updated successfully",
"shopId": 36418
}
Need Support?
Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.