APG|SGA
infosnowAPI Type 1API Type 2Divers

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

EntityTypeValuesDescription
resorts[]arrayresortslist of resorts

resorts

EntityTypeValuesDescription
idintany valid valueid of resort
namestringmax. 255 charsname of resort
rights[]arraypermission entitiespermissions for this resort

permission entities

EntityTypeValuesDescription
objectsobjectpermissionsobjects
mediaclientsobjectpermissionsmediaclients

permissions

EntityTypeValuesDescription
readbooleantrue|falseread items
updatebooleantrue|falseupdate items
createbooleantrue|falsecreate items
deletebooleantrue|falsedelete 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
			}
		}]
	}]
}