PUT api/v1/admin/users/{id}

Updates user details of the specified user. The logged in user must have permission to perform this action.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the user to be modified.

globally unique identifier

Required

Body Parameters

The new details of the user.

User
NameDescriptionTypeAdditional information
ID

The unique identifier for the user.

globally unique identifier

None.

AgreementDate

The date the user accepted the privacy policy and data processing agreement. This field is read-only.

date

None.

AccountID

The unique identifier for the account.

globally unique identifier

None.

AdminUser

Determines if the user is an admin user.

boolean

None.

DateCreated

The date the user account was created.

date

None.

DateModified

The date the user account was last modified.

date

None.

DeclineDate

The date the user declined the privacy policy and data processing agreement. This field is read-only.

date

None.

DisplayName

The name of the user.

string

Required

DPAVersion

The version of the data processing agreement that the user has accepted. This field is only read-only.

string

None.

EmailAddress

The email address of the user.

string

Required

Data type: EmailAddress

Enabled

Determines the status of the user.

boolean

Required

LanguageID

The Id of the language of the user.

globally unique identifier

Required

MobilePhone

The mobile phone of the user

string

Required

Matching regular expression pattern: ^(?=.*?\d.*?\d.*?\d.*?\d.*?\d)([+]?)([\d\s\(\)-]{5,20})$

Password

The password of the user.

string

None.

Pin

Sets the security pin when two factor has been enable. Set it to null if you want it to randonly generate each login.

string

None.

Preferences

Preferences

None.

PrivacyPolicyVersion

The version of the privacy policy that the user has accepted. This field is only read-only.

string

None.

SSOEnabled

Determines if the user is part of a SSO setup.

boolean

None.

TimeZone

The timezone of the user.

string

Required

Username

The username of the user to log into the system.

string

Required

Request Formats

application/json, text/json

Sample:
{
  "ID": "a3994f7c-273c-42f0-8595-c10184a9e85d",
  "AgreementDate": "2024-11-21T08:48:27.8089639+00:00",
  "AccountID": "525d10cf-d0d1-4ed7-ba1f-bb27322de949",
  "AdminUser": true,
  "DateCreated": "2024-11-21T08:48:27.8089639+00:00",
  "DateModified": "2024-11-21T08:48:27.8089639+00:00",
  "DeclineDate": "2024-11-21T08:48:27.8089639+00:00",
  "DisplayName": "sample string 6",
  "DPAVersion": "sample string 7",
  "EmailAddress": "sample string 8",
  "Enabled": true,
  "LanguageID": "8999f6df-c0fa-4789-bb21-57f4b2341f8b",
  "MobilePhone": "sample string 12",
  "Password": "sample string 13",
  "Pin": "sample string 14",
  "Preferences": 0,
  "PrivacyPolicyVersion": "sample string 15",
  "SSOEnabled": true,
  "TimeZone": "sample string 17",
  "Username": "sample string 18",
  "UserPassword": "sample string 19"
}

application/xml, text/xml

Sample:
<User xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>a3994f7c-273c-42f0-8595-c10184a9e85d</ID>
  <AgreementDate>2024-11-21T08:48:27.8089639+00:00</AgreementDate>
  <AccountID>525d10cf-d0d1-4ed7-ba1f-bb27322de949</AccountID>
  <AdminUser>true</AdminUser>
  <DateCreated>2024-11-21T08:48:27.8089639+00:00</DateCreated>
  <DateModified>2024-11-21T08:48:27.8089639+00:00</DateModified>
  <DeclineDate>2024-11-21T08:48:27.8089639+00:00</DeclineDate>
  <DisplayName>sample string 6</DisplayName>
  <DPAVersion>sample string 7</DPAVersion>
  <EmailAddress>sample string 8</EmailAddress>
  <Enabled>true</Enabled>
  <LanguageID>8999f6df-c0fa-4789-bb21-57f4b2341f8b</LanguageID>
  <Language>sample string 11</Language>
  <MobilePhone>sample string 12</MobilePhone>
  <Password>sample string 13</Password>
  <Pin>sample string 14</Pin>
  <Preferences>NONE</Preferences>
  <PrivacyPolicyVersion>sample string 15</PrivacyPolicyVersion>
  <SSOEnabled>true</SSOEnabled>
  <TimeZone>sample string 17</TimeZone>
  <Username>sample string 18</Username>
  <UserPassword>sample string 19</UserPassword>
</User>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The modified user details.

ResponseOfUser
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfUser

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {
      "ID": "5bb5a7de-6604-41c3-9486-123086501312",
      "AgreementDate": "2024-11-21T08:48:27.8099616+00:00",
      "AccountID": "66fd745a-aecf-4376-9650-cd977ffbc38a",
      "AdminUser": true,
      "DateCreated": "2024-11-21T08:48:27.8099616+00:00",
      "DateModified": "2024-11-21T08:48:27.8099616+00:00",
      "DeclineDate": "2024-11-21T08:48:27.8099616+00:00",
      "DisplayName": "sample string 6",
      "DPAVersion": "sample string 7",
      "EmailAddress": "sample string 8",
      "Enabled": true,
      "LanguageID": "65729057-f509-429c-9ebc-7c19572e803a",
      "MobilePhone": "sample string 12",
      "Password": "sample string 13",
      "Pin": "sample string 14",
      "Preferences": 0,
      "PrivacyPolicyVersion": "sample string 15",
      "SSOEnabled": true,
      "TimeZone": "sample string 17",
      "Username": "sample string 18",
      "UserPassword": "sample string 19"
    }
  }
}

application/xml, text/xml

Sample:
<ResponseOfUser xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail>
      <ID>5bb5a7de-6604-41c3-9486-123086501312</ID>
      <AgreementDate>2024-11-21T08:48:27.8099616+00:00</AgreementDate>
      <AccountID>66fd745a-aecf-4376-9650-cd977ffbc38a</AccountID>
      <AdminUser>true</AdminUser>
      <DateCreated>2024-11-21T08:48:27.8099616+00:00</DateCreated>
      <DateModified>2024-11-21T08:48:27.8099616+00:00</DateModified>
      <DeclineDate>2024-11-21T08:48:27.8099616+00:00</DeclineDate>
      <DisplayName>sample string 6</DisplayName>
      <DPAVersion>sample string 7</DPAVersion>
      <EmailAddress>sample string 8</EmailAddress>
      <Enabled>true</Enabled>
      <LanguageID>65729057-f509-429c-9ebc-7c19572e803a</LanguageID>
      <Language>sample string 11</Language>
      <MobilePhone>sample string 12</MobilePhone>
      <Password>sample string 13</Password>
      <Pin>sample string 14</Pin>
      <Preferences>NONE</Preferences>
      <PrivacyPolicyVersion>sample string 15</PrivacyPolicyVersion>
      <SSOEnabled>true</SSOEnabled>
      <TimeZone>sample string 17</TimeZone>
      <Username>sample string 18</Username>
      <UserPassword>sample string 19</UserPassword>
    </Detail>
  </ResponseData>
</ResponseOfUser>