Grant a new privilege on the host account which allows the targetted user to perform a subset of management operations based on their assigned role.
Security
SessionKey(Required scopes: customeradministrator)
- Mock serverhttps://docs.ticketingevents.com/_mock/openapi/hosts/{host}/privileges
- QA Serverhttps://qa.ticketingevents.com/v3/hosts/{host}/privileges
- Production Serverhttps://api.ticketingevents.com/v3/hosts/{host}/privileges
curl -i -X POST \
'https://docs.ticketingevents.com/_mock/openapi/hosts/{host}/privileges' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"user": "billy.butcher@fbsa.gov",
"role": "Administrator"
}'The privilege was successfully granted to the user.
Unique identifier of the resource to which this privilege grants access.
Response
{ "self": "/hosts/16951985851389/privileges/18294757620193", "user": "billy.butcher@fbsa.gov", "role": { "name": "Administrator", "permissions": [ … ] }, "type": "host", "resource": 16993717817996, "pending": false }