PUT user/update

Updates an existing user

Request Information

URI Parameters

None.

Body Parameters

UserUpdateRequest object contains the fields to be updated

UserUpdateRequest
NameDescriptionTypeAdditional information
UserId

integer

None.

FirstName

string

None.

LastName

string

None.

StaffNumber

string

None.

BirthDate

date

None.

AdUserName

string

None.

IsADUser

boolean

None.

Email

string

None.

Password

string

None.

Phone

string

None.

PhoneExtension

string

None.

Mobile

string

None.

JobTitle

string

None.

Language

string

None.

OfficeId

integer

None.

CostCenterId

integer

None.

SecurityLevelId

integer

None.

ExpenseApprover1

integer

None.

ExpenseApprover2

integer

None.

SapInternalOrder

string

None.

SapVendorCode

string

None.

Permissions

Collection of string

None.

Notifications

Collection of NotificationInfo

None.

GenerateRequestNumber

boolean

None.

OfficePermissions

Collection of integer

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "StaffNumber": "sample string 4",
  "BirthDate": "2025-04-29T12:08:52.6440419+02:00",
  "AdUserName": "sample string 6",
  "IsADUser": true,
  "Email": "sample string 8",
  "Password": "sample string 9",
  "Phone": "sample string 10",
  "PhoneExtension": "sample string 11",
  "Mobile": "sample string 12",
  "JobTitle": "sample string 13",
  "Language": "sample string 14",
  "OfficeId": 15,
  "CostCenterId": 1,
  "SecurityLevelId": 16,
  "ExpenseApprover1": 1,
  "ExpenseApprover2": 1,
  "SapInternalOrder": "sample string 17",
  "SapVendorCode": "sample string 18",
  "Permissions": [
    "sample string 1",
    "sample string 2"
  ],
  "Notifications": [
    {
      "Type": "sample string 1",
      "IsInherited": true,
      "IsGroupInherited": true,
      "UserId": 1,
      "UserGroupId": 1,
      "SecurityLevelId": 1,
      "Operation": "sample string 4",
      "SendPush": true,
      "SendEmail": true,
      "NotificationTemplateId": 7,
      "Action": "sample string 8",
      "Scope": 9
    },
    {
      "Type": "sample string 1",
      "IsInherited": true,
      "IsGroupInherited": true,
      "UserId": 1,
      "UserGroupId": 1,
      "SecurityLevelId": 1,
      "Operation": "sample string 4",
      "SendPush": true,
      "SendEmail": true,
      "NotificationTemplateId": 7,
      "Action": "sample string 8",
      "Scope": 9
    }
  ],
  "GenerateRequestNumber": true,
  "OfficePermissions": [
    1,
    2
  ],
  "IsActive": true
}

application/xml, text/xml

Sample:
<UserUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SALT2.Objects.UserObjects">
  <IsActive xmlns="http://schemas.datacontract.org/2004/07/SALT2.Objects">true</IsActive>
  <AdUserName>sample string 6</AdUserName>
  <BirthDate>2025-04-29T12:08:52.6440419+02:00</BirthDate>
  <CostCenterId>1</CostCenterId>
  <Email>sample string 8</Email>
  <ExpenseApprover1>1</ExpenseApprover1>
  <ExpenseApprover2>1</ExpenseApprover2>
  <FirstName>sample string 2</FirstName>
  <GenerateRequestNumber>true</GenerateRequestNumber>
  <IsADUser>true</IsADUser>
  <JobTitle>sample string 13</JobTitle>
  <Language>sample string 14</Language>
  <LastName>sample string 3</LastName>
  <Mobile>sample string 12</Mobile>
  <Notifications xmlns:d2p1="http://schemas.datacontract.org/2004/07/SALT2.Objects.CommunicationObjects">
    <d2p1:NotificationInfo>
      <d2p1:Action>sample string 8</d2p1:Action>
      <d2p1:IsGroupInherited>true</d2p1:IsGroupInherited>
      <d2p1:IsInherited>true</d2p1:IsInherited>
      <d2p1:NotificationTemplateId>7</d2p1:NotificationTemplateId>
      <d2p1:Operation>sample string 4</d2p1:Operation>
      <d2p1:Scope>9</d2p1:Scope>
      <d2p1:SecurityLevelId>1</d2p1:SecurityLevelId>
      <d2p1:SendEmail>true</d2p1:SendEmail>
      <d2p1:SendPush>true</d2p1:SendPush>
      <d2p1:Type>sample string 1</d2p1:Type>
      <d2p1:UserGroupId>1</d2p1:UserGroupId>
      <d2p1:UserId>1</d2p1:UserId>
    </d2p1:NotificationInfo>
    <d2p1:NotificationInfo>
      <d2p1:Action>sample string 8</d2p1:Action>
      <d2p1:IsGroupInherited>true</d2p1:IsGroupInherited>
      <d2p1:IsInherited>true</d2p1:IsInherited>
      <d2p1:NotificationTemplateId>7</d2p1:NotificationTemplateId>
      <d2p1:Operation>sample string 4</d2p1:Operation>
      <d2p1:Scope>9</d2p1:Scope>
      <d2p1:SecurityLevelId>1</d2p1:SecurityLevelId>
      <d2p1:SendEmail>true</d2p1:SendEmail>
      <d2p1:SendPush>true</d2p1:SendPush>
      <d2p1:Type>sample string 1</d2p1:Type>
      <d2p1:UserGroupId>1</d2p1:UserGroupId>
      <d2p1:UserId>1</d2p1:UserId>
    </d2p1:NotificationInfo>
  </Notifications>
  <OfficeId>15</OfficeId>
  <OfficePermissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </OfficePermissions>
  <Password>sample string 9</Password>
  <Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Permissions>
  <Phone>sample string 10</Phone>
  <PhoneExtension>sample string 11</PhoneExtension>
  <SapInternalOrder>sample string 17</SapInternalOrder>
  <SapVendorCode>sample string 18</SapVendorCode>
  <SecurityLevelId>16</SecurityLevelId>
  <StaffNumber>sample string 4</StaffNumber>
  <UserId>1</UserId>
</UserUpdateRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserUpdateRequest'.

Response Information

Resource Description

UserUpdateResponse

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.