PUT /service/api/console/gsm/{gsmKey}/sites/{siteId}/admins/{userId}
Edits certain user account attributes of a site admin.
Request Information
URI Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
gsmKey |
The GSM console keycode. |
string |
Required |
siteId |
The site identifier. |
string |
Required |
userId |
The identifier of the admin to modify. |
string |
Required |
URI Sample(s)
PUT
|
https://unityapi.webrootcloudav.com/service/api/console/gsm/B19A-56AF-5C77-4FC5-A5BE/sites/2cc73cff-e867-46e1-b929-25cde3416a1e/admins/86b332bf-92eb-4b0a-bbc5-afae3b8d956b
|
Body Parameters
Information about which values to modify.
Values which are not provided or null in the request body remain unchanged.
EditGSMSiteAdminRequestModelName | Description | Type | Additional Information |
---|---|---|---|
FirstName |
If provided, specifies the new value to be set as the user's first name. The name must be at least 2 characters and not more than 30 characters in length. |
string |
None. |
LastName |
If provided, specifies the new value to be set as the user's last name. The name must be at least 2 characters and not more than 30 characters in length. |
string |
None. |
Sample Request
{ "FirstName": "John", "LastName": null }
<EditGSMSiteAdminRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <FirstName>John</FirstName> <LastName i:nil="true" /> </EditGSMSiteAdminRequestModel>
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).