PUT /service/api/console/gsm/{gsmKey}/sites/{siteId}/admins
Adds admins to a site or modifies access permissions of site admins.
NOTE: Depending on the number of permission changes made, these
modifications may take up to a few minutes to be processed and reflected by other API calls accordingly.
NOTE: This API method allows adding existing GSM admins to
the list of admins of a site, or modifying access permissions of already set up site admins. To get information about
available admins, either query the list of admins on the GSM console (see here)
or the list of admins on a site (see here).
Request Information
URI Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
gsmKey |
The GSM console keycode. |
string |
Required |
siteId |
The site identifier. |
string |
Required |
URI Sample(s)
PUT
|
https://unityapi.webrootcloudav.com/service/api/console/gsm/E660-20C5-53CD-4F1B-A3B6/sites/9ff358e5-4548-40f6-b238-867dd0d849b2/admins
|
Body Parameters
Additional information about which admins should be added to or modified for the site.
EditGSMSiteAdminsRequestModelName | Description | Type | Additional Information |
---|---|---|---|
Admins |
The list of admins to add or modify for the site. |
Collection of EditGSMSiteAdminsRequestModel_Admin |
Required |
Sample Request
{ "Admins": [ { "UserId": "2552020e-7395-463f-b2d1-8beb9b872754", "AccessLevel": 128 }, { "UserId": "50f03a7d-3977-442c-8cbc-4c05b6d4fda6", "AccessLevel": 128 } ] }
<EditGSMSiteAdminsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <Admins> <EditGSMSiteAdminsRequestModel_Admin> <AccessLevel>128</AccessLevel> <UserId>2552020e-7395-463f-b2d1-8beb9b872754</UserId> </EditGSMSiteAdminsRequestModel_Admin> <EditGSMSiteAdminsRequestModel_Admin> <AccessLevel>128</AccessLevel> <UserId>50f03a7d-3977-442c-8cbc-4c05b6d4fda6</UserId> </EditGSMSiteAdminsRequestModel_Admin> </Admins> </EditGSMSiteAdminsRequestModel>
Response Information
Resource Description
None. If successful, this API action does not return any data and the response status code will be 204 (No Content).