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: Creating new admin users can only be done interactively via the SecureAnywhere Website. 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

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": "a7a545ee-447c-4e77-b2e9-55fe296be4e2",
      "AccessLevel": 128
    },
    {
      "UserId": "f585e2cd-4c85-459e-b114-7dd8288b05cf",
      "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>a7a545ee-447c-4e77-b2e9-55fe296be4e2</UserId>
    </EditGSMSiteAdminsRequestModel_Admin>
    <EditGSMSiteAdminsRequestModel_Admin>
      <AccessLevel>128</AccessLevel>
      <UserId>f585e2cd-4c85-459e-b114-7dd8288b05cf</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).