PUT api/users/{id}
Update a user
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters
UserDtoName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Name | string |
Required Max length: 50 |
|
string |
Required |
||
IsActive | boolean |
None. |
|
Customer | NamedItem |
None. |
|
Roles | Collection of UserRoleDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "0cd4153e-ac53-4539-b94a-b877fb1aa2f3", "Name": "sample string 2", "Email": "sample string 3", "IsActive": true, "Customer": { "Id": "334ad8ca-7dc3-4966-b908-e2c441a96d00", "Name": "sample string 2" }, "Roles": [ { "Role": "Viewer", "CustomerGroup": { "Id": "334ad8ca-7dc3-4966-b908-e2c441a96d00", "Name": "sample string 2" }, "IsActive": true }, { "Role": "Viewer", "CustomerGroup": { "Id": "334ad8ca-7dc3-4966-b908-e2c441a96d00", "Name": "sample string 2" }, "IsActive": true } ] }
Response Information
Resource Description
UserDtoName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Name | string |
Required Max length: 50 |
|
string |
Required |
||
IsActive | boolean |
None. |
|
Customer | NamedItem |
None. |
|
Roles | Collection of UserRoleDto |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "17b5944d-26e3-4a1f-9c64-944135d0dd86", "Name": "sample string 2", "Email": "sample string 3", "IsActive": true, "Customer": { "Id": "1cb69cac-ca30-4cb2-94cf-95a0fd6a4bda", "Name": "sample string 2" }, "Roles": [ { "Role": "Viewer", "CustomerGroup": { "Id": "1cb69cac-ca30-4cb2-94cf-95a0fd6a4bda", "Name": "sample string 2" }, "IsActive": true }, { "Role": "Viewer", "CustomerGroup": { "Id": "1cb69cac-ca30-4cb2-94cf-95a0fd6a4bda", "Name": "sample string 2" }, "IsActive": true } ] }