Skip to content

/v1/resources/{id}/restrictions (GET)

GET
/v1/resources/{id}/restrictions
curl --request GET \
--url http://localhost:8787/v1/resources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restrictions \
--header 'Authorization: Bearer <token>'
id
required
string format: uuid

This resource’s restriction calendar (empty if it has no room type).

Media typeapplication/json
object
resourceId
required
string format: uuid
restrictions
required
Array<object>
object
closedToArrival
required
boolean | null
closedToDeparture
required
boolean | null
from
required
string
id
required
string format: uuid
maxStayNights
required
integer | null
minStayNights
required
integer | null
ratePlanCode
required
string
stopSell
required
boolean
to
required
string
Examplegenerated
{
"resourceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"restrictions": [
{
"closedToArrival": true,
"closedToDeparture": true,
"from": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"maxStayNights": 1,
"minStayNights": 1,
"ratePlanCode": "example",
"stopSell": true,
"to": "example"
}
]
}

No such resource for this tenant.

Media typeapplication/problem+json
object
code
required
string
Allowed values: resource_not_found no_room_type unknown_rate_plan_code invalid_window range_too_large
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{
"code": "resource_not_found"
}