Updates the user

Request Information

Parameters

NameDescriptionAdditional information
id The id of the user

Define this parameter in the request URI.

model The updated modelr

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Phone": "sample string 2",
  "IsCompanyAdmin": true,
  "Remarks": "sample string 4",
  "CompanyId": 5,
  "Roles": [
    0,
    0,
    0
  ],
  "AppFormTransferMethods": 6,
  "AppAttachmentTransferMethods": 7
}

application/xml, text/xml

Sample:
<UserRest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Name>sample string 1</Name>
  <Phone>sample string 2</Phone>
  <IsCompanyAdmin>true</IsCompanyAdmin>
  <Remarks>sample string 4</Remarks>
  <CompanyId>5</CompanyId>
  <Roles>
    <RoleDiscriminator>None</RoleDiscriminator>
    <RoleDiscriminator>None</RoleDiscriminator>
    <RoleDiscriminator>None</RoleDiscriminator>
  </Roles>
  <AppFormTransferMethods>6</AppFormTransferMethods>
  <AppAttachmentTransferMethods>7</AppAttachmentTransferMethods>
</UserRest>

Response Information

Returns: The model of the user

Response body formats

application/json, text/json

Sample:
{
  "Uri": "/users/1",
  "CompanyUri": "/companies/2",
  "Id": 1,
  "Enabled": false,
  "Name": "ExampleUser",
  "Phone": "051123456",
  "IsCompanyAdmin": false,
  "Remarks": null,
  "CompanyId": 2,
  "Roles": [
    8,
    4
  ],
  "AppFormTransferMethods": 0,
  "AppAttachmentTransferMethods": 0
}

application/xml, text/xml

Sample:
<UserRestGet xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Name>ExampleUser</Name>
  <Phone>051123456</Phone>
  <IsCompanyAdmin>false</IsCompanyAdmin>
  <CompanyId>2</CompanyId>
  <Roles>
    <RoleDiscriminator>Dispatcher</RoleDiscriminator>
    <RoleDiscriminator>Sender</RoleDiscriminator>
  </Roles>
  <AppFormTransferMethods>0</AppFormTransferMethods>
  <AppAttachmentTransferMethods>0</AppAttachmentTransferMethods>
  <Uri>/users/1</Uri>
  <CompanyUri>/companies/2</CompanyUri>
  <Id>1</Id>
  <Enabled>false</Enabled>
</UserRestGet>