
The PUT User API allows you to update an existing user.
On the Cloud, this API is available via SSL-secured HTTPS connection using the REST GET verb.
The format query string parameter controls the desired response format. Specify either XML or JSON.
/api/v2/user?format=xml/json
Endpoints & API Explorer
| Node | API Endpoint | API Explorer |
|---|---|---|
| US | api/v2/user | Model Description/Schema & Parameters |
Parameters
The PUT verb on the User API allows you to update a specified user’s details. The required and optional parameters for a PUT call to the User API are outlined below:
| Name | Type | Description | Required |
|---|---|---|---|
| Id | String | The user’s unique identity. This value must be a GUID and can be obtained from the User Search API. | ✓ |
| Type | String | The type of user account. Options are: [‘Full’, ‘Premium’, ‘Standard’, ‘Lite’] | |
| FirstName | String | The user’s first name. | |
| LastName | String | The user’s last name. | |
| String | The user’s email address. | ||
| Password | String | The user’s password. | |
| Status | String | The user’s account status. | |
| ExternalId | String | The external ID of the user’s account. | |
| TimeZone | String | The full name of the timezone, e.g., Central Standard Time. | |
| Country | String | The user’s country. | |
| WebsiteRole | String | The user’s website access permissions. | |
| Folders | Array | The folders the user is assigned. | |
| Groups | Array | The groups the user is assigned. | |
| DoNotEmail | Boolean | Flag whether to send the user email or not. | |
| ColorCode | String | Assign this user a unique hexadecimal HTML color code. This will be used in various parts of the platform where users are identified by their color. | |
| Metadata | Array | Additional information about this user specified as key/value pairs. | |
| UseNames | Boolean | Use Names instead of GUID identifier for any Groups and Folders values | |
| UseExternalIds | Boolean | Use External ID instead of GUID identifier for any Groups and Folders values. | |
| LoginID | String | The username or other such non-email identifier as defined in your external identity provider when Email-less Login is enabled. By default is user email. | |
| CompanyId | Integer | Your unique Company Id found on the Organisation Setup page of the secure website. | ✓ |
| IntegrationKey | String | Your unique Integration Key found on the Organisation Setup page of the secure website. | ✓ |
Example
Given that the API is REST-based, you can access the API directly via your web browser to test it using a REST plugin like the Postman plugin for Google Chrome.
Request URL
{
"Id": "2ebc64a36a0d400dXXXXXXXX",
"Type": "Standard",
"CompanyId": XXXXX,
"IntegrationKey": "78eec3032af240fXXXXXXXXX"
}Request Body
{
"Id": "2ebc64a36a0d400dXXXXXXXX",
"Type": "Standard",
"CompanyId": XXXXX,
"IntegrationKey": "78eec3032af240fXXXXXXXXX"
}Response Body
{
"User": {
"Id": "2ebc64a36a0d400XXXXXXXX",
"Type": "Standard",
"FirstName": "Mc",
"LastName": "Testy",
"Email": "XXXmctesty@example.com",
"Status": "Active",
"ExternalId": "XXX",
"TimeZone": "Universal Standard Time",
"TimeZoneOffSet": 120,
"Country": "BA",
"WebsiteRole": "ReadOnly",
"CreatedDate": "2019-09-11T06:24:03.9630000Z",
"LastUpdated": "2023-01-12T12:04:23.2518033Z",
"LastActivity": "2021-08-30T06:28:58.1000000Z",
"UserAudits": [
{
"Id": 16XXXXX,
"Email": "XXXmctesty@example.com",
"On": "2019-09-11T06:26:40.6428186Z",
"Off": "2023-01-12T12:04:23.2361762Z",
"OffReason": "TypeChange",
"Type": "Premium",
"Status": "Active"
},
{
"Id": 16XXXXX,
"Email": "XXXmctesty@example.com",
"On": "2019-09-11T06:23:58.9630000Z",
"Off": "2019-09-11T06:26:40.6428186Z",
"OffReason": "Activated",
"Type": "Full",
"Status": "Invited"
},
{
"Id": 16XXXXX,
"Email": "XXXmctesty@example.com",
"On": "2023-01-12T12:04:23.2361762Z",
"Type": "Standard",
"Status": "Active"
}
],
"Folders": [],
"Groups": [
"f3e6d6e571924XXXXXXXX"
],
"Metadata": [
{
"Key": "NameEUI"
}
],
"CompanyId": XXXXX
}
}