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

NameDescriptionTypeAdditional 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/9F4F-AA07-0380-498D-A3F9/sites/79af9569-3f80-4a46-a392-55e640a4c5ba/admins

Body Parameters

Additional information about which admins should be added to or modified for the site.

EditGSMSiteAdminsRequestModel
NameDescriptionTypeAdditional Information
Admins

The list of admins to add or modify for the site.

Collection of EditGSMSiteAdminsRequestModel_Admin

Required

Sample Request

{
  "Admins": [
    {
      "UserId": "eefe5010-be5d-4861-bdd6-10be7d35f666",
      "AccessLevel": 128
    },
    {
      "UserId": "971f7ca3-e30c-4a40-82c0-d98b370d9607",
      "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>eefe5010-be5d-4861-bdd6-10be7d35f666</UserId>
    </EditGSMSiteAdminsRequestModel_Admin>
    <EditGSMSiteAdminsRequestModel_Admin>
      <AccessLevel>128</AccessLevel>
      <UserId>971f7ca3-e30c-4a40-82c0-d98b370d9607</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).