API Type 2 - Get resorts / permissions
Request a report of all resorts you have access to and the corresponding permissions you have.
If you are missing some rights ask APG|SGA for help.
API endpoint
permissions
Request method
GET
Request headers
-
URL parameters
resorts
This parameter is optional. This lets you filter by resort id(s). No comma at the beginning or end of this string.
resorts=31,45
Response content
main entity
|
resorts[] | array | resorts | list of resorts |
resorts
|
id | int | any valid value | id of resort |
name | string | max. 255 chars | name of resort |
rights[] | array | permission entities | permissions for this resort |
permission entities
permissions
|
read | boolean | true|false | read items |
update | boolean | true|false | update items |
create | boolean | true|false | create items |
delete | boolean | true|false | delete items |
Example
{
"resorts": [{
"id": 31,
"name": "Verbier",
"rights": [{
"mediaclients": {
"read": true,
"update": true,
"create": false,
"delete": false
}
}, {
"objects": {
"read": true,
"update": true,
"create": false,
"delete": false
}
}]
}, {
"id": 45,
"name": "Mont Fort",
"rights": [{
"objects": {
"read": true,
"update": false,
"create": false,
"delete": false
}
}]
}]
}