Destinations
Overview
This resource represents the Destinations (the actual place) that can be assigned to Rentals.
Parameters
- OAuth Scopes:
- public
Name | Type | Read/Write | Description |
---|---|---|---|
id | Integer | Read | Destination's id. |
aliases | Object | Read | Destination's aliases, list of locales described in enums section. |
ancestor_ids | Array | Read | Array of destination's ancestor destinations ids. |
counter | Integer | Read | Destination's use counter for rentals. |
fullname | Object | Read | Destination's fullname, list of locales described in enums section. |
name | Object | Read | Destination's name, list of locales described in enums section. |
permalink | Object | Read | Destination's permalink, list of locales described in enums section. |
created_at | Time | Read | Destination's create time. |
updated_at | Time | Read | Destination's update time. |
List destinations
List all destinations for a given account(s).
GET /destinations
- OAuth Scopes:
- public
response.json
{
"destinations": [
{
"id": 3212,
"name": {
"en": "Europe"
},
"fullname": {
"en": "Europe, World"
},
"permalink": {
"en": "world/europe"
},
"aliases": {},
"counter": 1,
"ancestor_ids": [
1
]
}
],
"meta": {}
}
Get a single destination
Returns a single destination identified by ID.
GET /destinations/:destination_id
- OAuth Scopes:
- public
response.json
{
"destinations": [
{
"id": 3212,
"name": {
"en": "Europe"
},
"fullname": {
"en": "Europe, World"
},
"permalink": {
"en": "world/europe"
},
"aliases": {},
"counter": 1,
"ancestor_ids": [
1
]
}
],
"meta": {}
}