PUT users/{id}/disable
Deactivates the user
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| id | The id of the user to activate |
Define this parameter in the request URI. |
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>
