POST api/users
Create a user
Request Information
URI Parameters
None.
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": "7ff8cf5f-87dc-419f-829e-b792140b96dc", "Name": "sample string 2", "Email": "sample string 3", "IsActive": true, "Customer": { "Id": "b34a4966-11e5-4c32-9663-f1f89d9355a2", "Name": "sample string 2" }, "Roles": [ { "Role": "Viewer", "CustomerGroup": { "Id": "b34a4966-11e5-4c32-9663-f1f89d9355a2", "Name": "sample string 2" }, "IsActive": true }, { "Role": "Viewer", "CustomerGroup": { "Id": "b34a4966-11e5-4c32-9663-f1f89d9355a2", "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": "1151be1d-9d3a-4320-bae5-864c5fa1454f", "Name": "sample string 2", "Email": "sample string 3", "IsActive": true, "Customer": { "Id": "51f20475-6ef6-41ad-8763-c66be4eda14a", "Name": "sample string 2" }, "Roles": [ { "Role": "Viewer", "CustomerGroup": { "Id": "51f20475-6ef6-41ad-8763-c66be4eda14a", "Name": "sample string 2" }, "IsActive": true }, { "Role": "Viewer", "CustomerGroup": { "Id": "51f20475-6ef6-41ad-8763-c66be4eda14a", "Name": "sample string 2" }, "IsActive": true } ] }