Update an accommodation
This endpoint allows you to perform an update on an accommodation by providing the accommodation id.
Request
PUT/v1/accommodations/{accommodation}/urls
curl -X PUT https://api.ntak.guru/v1/accommodations/99845d23-7ffb-4267-85ef-c8d4ac70e46a/urls \
  -H "Authorization: Bearer {token}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"dailyCloseUrl": "https://example.com/daily-close", "callbackUrl": "https://example.com/callback"}'
 URL Parameters
| Name | Description | 
|---|---|
accommodation | The accommodation id | 
Request Body
| Name | Type | Description | Required | 
|---|---|---|---|
dailyCloseUrl | string | PMS endpoint where NTAK.guru will fetches the data for the daily close report. | Yes | 
callbackUrl | string or null | PMS endpoint where NTAK.guru sends the webhook. | No | 
Example
{
  "dailyCloseUrl": "https://hotelcalifornia.com/api/daily-close",
  "callbackUrl": "https://hotelcalifornia.com/api/ntak-guru"
}Response
ℹ️
Read more about the accommodation object on this page.
{
  "payload": {
    "id": "99845d23-7ffb-4267-85ef-c8d4ac70e46a",
    "slug": "rqdsw",
    "name": "Senger-Cummerata",
    "providerName": "New Provider Ltd.",
    "providerTaxNumber": "12345678-1-12",
    "postalCode": null,
    "locality": null,
    "reportingId": null,
    "active": false,
    "hasLiveCertificate": false,
    "hasPendingCertificate": false,
    "callbackUrl": "https://example.com/callback",
    "dailyCloseUrl": "https://example.com/daily-close",
    "expireAt": null,
    "roles": [
      "Owner",
    ],
    "createdAt": "2023-06-28T07:36:13+00:00",
    "updatedAt": "2023-06-28T07:36:13+00:00",
  },
  "message": null
}