POST api/UserAccount

Request Information

URI Parameters

None.

Body Parameters

UserAccountModel
NameDescriptionTypeAdditional information
UserId

integer

None.

UserUUID

string

None.

UserRoleId

integer

None.

UserGroupId

integer

None.

CompanyAccountId

integer

None.

UserFirstName

string

None.

UserLastName

string

None.

UserEmailAddress

string

None.

UserPassword

string

None.

UserProfilePicture

string

None.

UserHourlyRate

integer

None.

UserHoursPerDay

integer

None.

UserPhone

string

None.

UserResponsibilities

integer

None.

EmailNotifications

boolean

None.

IsPasswordReset

boolean

None.

ActiveStatus

boolean

None.

AuthToken

string

None.

UserRolePermissionList

Collection of UserRolePermissionModel

None.

UserConfigurationList

Collection of UserConfigurationModel

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "UserUUID": "sample string 2",
  "UserRoleId": 3,
  "UserGroupId": 4,
  "CompanyAccountId": 5,
  "UserFirstName": "sample string 6",
  "UserLastName": "sample string 7",
  "UserEmailAddress": "sample string 8",
  "UserPassword": "sample string 9",
  "UserProfilePicture": "sample string 10",
  "UserHourlyRate": 11,
  "UserHoursPerDay": 12,
  "UserPhone": "sample string 13",
  "UserResponsibilities": 14,
  "EmailNotifications": true,
  "IsPasswordReset": true,
  "ActiveStatus": true,
  "AuthToken": "sample string 18",
  "UserRolePermissionList": [
    {
      "UserRolePermissionId": 1,
      "CompanyAccountId": 2,
      "UserRoleId": 3,
      "PermissionId": 4
    },
    {
      "UserRolePermissionId": 1,
      "CompanyAccountId": 2,
      "UserRoleId": 3,
      "PermissionId": 4
    }
  ],
  "UserConfigurationList": [
    {
      "UserConfigurationId": 1,
      "UserId": 2,
      "CompanyAccountId": 3,
      "UserConfigurationKey": "sample string 4",
      "UserConfigurationValue": "sample string 5"
    },
    {
      "UserConfigurationId": 1,
      "UserId": 2,
      "CompanyAccountId": 3,
      "UserConfigurationKey": "sample string 4",
      "UserConfigurationValue": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<UserAccountModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cuewel.Business.Model">
  <ActiveStatus>true</ActiveStatus>
  <AuthToken>sample string 18</AuthToken>
  <CompanyAccountId>5</CompanyAccountId>
  <EmailNotifications>true</EmailNotifications>
  <IsPasswordReset>true</IsPasswordReset>
  <UserConfigurationList>
    <UserConfigurationModel>
      <CompanyAccountId>3</CompanyAccountId>
      <UserConfigurationId>1</UserConfigurationId>
      <UserConfigurationKey>sample string 4</UserConfigurationKey>
      <UserConfigurationValue>sample string 5</UserConfigurationValue>
      <UserId>2</UserId>
    </UserConfigurationModel>
    <UserConfigurationModel>
      <CompanyAccountId>3</CompanyAccountId>
      <UserConfigurationId>1</UserConfigurationId>
      <UserConfigurationKey>sample string 4</UserConfigurationKey>
      <UserConfigurationValue>sample string 5</UserConfigurationValue>
      <UserId>2</UserId>
    </UserConfigurationModel>
  </UserConfigurationList>
  <UserEmailAddress>sample string 8</UserEmailAddress>
  <UserFirstName>sample string 6</UserFirstName>
  <UserGroupId>4</UserGroupId>
  <UserHourlyRate>11</UserHourlyRate>
  <UserHoursPerDay>12</UserHoursPerDay>
  <UserId>1</UserId>
  <UserLastName>sample string 7</UserLastName>
  <UserPassword>sample string 9</UserPassword>
  <UserPhone>sample string 13</UserPhone>
  <UserProfilePicture>sample string 10</UserProfilePicture>
  <UserResponsibilities>14</UserResponsibilities>
  <UserRoleId>3</UserRoleId>
  <UserRolePermissionList>
    <UserRolePermissionModel>
      <CompanyAccountId>2</CompanyAccountId>
      <PermissionId>4</PermissionId>
      <UserRoleId>3</UserRoleId>
      <UserRolePermissionId>1</UserRolePermissionId>
    </UserRolePermissionModel>
    <UserRolePermissionModel>
      <CompanyAccountId>2</CompanyAccountId>
      <PermissionId>4</PermissionId>
      <UserRoleId>3</UserRoleId>
      <UserRolePermissionId>1</UserRolePermissionId>
    </UserRolePermissionModel>
  </UserRolePermissionList>
  <UserUUID>sample string 2</UserUUID>
</UserAccountModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.