PUT /service/api/console/gsm/{gsmKey}/admins/{userId}

Edits certain user account attributes of a GSM admin.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
gsmKey

The GSM console keycode.

string

Required

userId

Identifier of the admin to modify.

string

Required

URI Sample(s)

PUT
https://unityapi.webrootcloudav.com/service/api/console/gsm/C448-75A8-BEF9-410E-A309/admins/27e6fb18-3b87-4094-9464-8d114c6cc9f8

Body Parameters

Information about which values to modify.

Values which are not provided or null in the request body remain unchanged.

EditGSMAdminRequestModel
NameDescriptionTypeAdditional 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
}                    
<EditGSMAdminRequestModel 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" />
</EditGSMAdminRequestModel>                    

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).