POST api/Account/Insert

Request Information

URI Parameters

None.

Body Parameters

InsertUserDtoIn
NameDescriptionTypeAdditional 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": "40a60de8-9587-4eb7-9654-b8dfafc904c0",
      "isActive": true,
      "reportId": "a7cef5b5-f487-4a78-8aa2-00a50643347d",
      "userName": "sample string 4",
      "isDeleted": true
    },
    {
      "id": "40a60de8-9587-4eb7-9654-b8dfafc904c0",
      "isActive": true,
      "reportId": "a7cef5b5-f487-4a78-8aa2-00a50643347d",
      "userName": "sample string 4",
      "isDeleted": true
    }
  ]
}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.