Get the resource availabilities on a full year in a binary string format. One bit represents one day. A "0" means that the day is free, while a "1" means that the day is full.

Request

GET https://api.digital-nautic.com/v3/resources/{resourceId}/availabilities

Path parameters

Parameter name Value Description Additional
resourceId string

pass a mandatory resource id to get access to the availabilities

Required

Query parameters

Parameter name Value Description Additional
year string

pass an optional year to get the resource availabilities. (if not specified, we use the current year)

Required
test boolean

set to true to return test resources

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

found items

Resource Availability Bitstring
400 Bad Request

invalid input, object invalid

401 Unauthorized

authorization information is missing or invalid.

404 Not Found

a resource with the specified ID was not found.


Explore this API

resourceId

pass a mandatory resource id to get access to the availabilities

year

pass an optional year to get the resource availabilities. (if not specified, we use the current year)

test

set to true to return test resources

Response Content-Type
Try it out!