POST api/UserProfile

Request Information

URI Parameters

None.

Body Parameters

UserProfileViewModel
NameDescriptionTypeAdditional information
id

integer

None.

firstName

string

None.

lastName

string

None.

email

string

Required

username

string

None.

statusId

byte

None.

roleIds

Collection of integer

None.

contactId

integer

None.

businessId

integer

None.

businessName

string

None.

productAccess

Collection of ProductAccessViewModel

None.

alerts

Collection of AlertViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "firstName": "sample string 2",
  "lastName": "sample string 3",
  "email": "sample string 4",
  "username": "sample string 5",
  "statusId": 64,
  "roleIds": [
    1,
    2
  ],
  "contactId": 7,
  "businessId": 8,
  "businessName": "sample string 9",
  "productAccess": [
    {
      "productId": 1,
      "productTypeId": 64,
      "productName": "sample string 3",
      "hasAccess": true
    },
    {
      "productId": 1,
      "productTypeId": 64,
      "productName": "sample string 3",
      "hasAccess": true
    }
  ],
  "alerts": [
    {
      "id": 1,
      "alertName": "sample string 2",
      "message": "sample string 3",
      "startDate": "2017-12-14T05:43:12.8295536-04:00",
      "endDate": "2017-12-14T05:43:12.8295536-04:00",
      "recipientEmail": "sample string 6",
      "productTypeId": 64,
      "roleId": 1,
      "lastModifiedBy": 7,
      "lastModifiedDate": "2017-12-14T05:43:12.8295536-04:00"
    },
    {
      "id": 1,
      "alertName": "sample string 2",
      "message": "sample string 3",
      "startDate": "2017-12-14T05:43:12.8295536-04:00",
      "endDate": "2017-12-14T05:43:12.8295536-04:00",
      "recipientEmail": "sample string 6",
      "productTypeId": 64,
      "roleId": 1,
      "lastModifiedBy": 7,
      "lastModifiedDate": "2017-12-14T05:43:12.8295536-04:00"
    }
  ]
}

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.