Changes the password for the user

Request Information

Parameters

NameDescriptionAdditional information
id The id of the user

Define this parameter in the request URI.

model The password model

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Password": "sample string 1"
}

application/xml, text/xml

Sample:
<UserPasswordRest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Password>sample string 1</Password>
</UserPasswordRest>

Response Information

Returns: The user model

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>