POST api/Account/Insert
Request Information
URI Parameters
None.
Body Parameters
InsertUserDtoInName | Description | Type | Additional information |
---|---|---|---|
FirstName | string |
Required Data type: Text String length: inclusive between 0 and 50 |
|
LastName | string |
Required Data type: Text String length: inclusive between 0 and 50 |
|
Username | string |
Required Data type: EmailAddress String length: inclusive between 0 and 200 |
|
PhoneNumber | string |
Data type: PhoneNumber String length: inclusive between 0 and 50 |
|
Roles | Collection of RoleDtoIn |
Required |
|
LinkUserDivisionIds | Collection of integer |
Required |
|
LinkUserBusinessUnitIds | Collection of integer |
Required |
|
Password | string |
Required Data type: Password String length: inclusive between 0 and 50 |
|
UserReports | Collection of UserReport |
None. |
Request Formats
application/json, text/json
Sample:
{ "firstName": "sample string 1", "lastName": "sample string 2", "username": "sample string 3", "phoneNumber": "sample string 4", "roles": [ { "id": "sample string 1", "name": "sample string 2" }, { "id": "sample string 1", "name": "sample string 2" } ], "linkUserDivisionIds": [ 1, 2 ], "linkUserBusinessUnitIds": [ 1, 2 ], "password": "sample string 5", "userReports": [ { "id": "4b729236-9edb-4092-bbca-7ff99c06978c", "isActive": true, "reportId": "55420fba-7b2c-4a94-abf2-5702fe7056ee", "userName": "sample string 4", "isDeleted": true }, { "id": "4b729236-9edb-4092-bbca-7ff99c06978c", "isActive": true, "reportId": "55420fba-7b2c-4a94-abf2-5702fe7056ee", "userName": "sample string 4", "isDeleted": true } ] }
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.