POST api/Exception/LogWebException

Request Information

URI Parameters

None.

Body Parameters

WebExceptionData
NameDescriptionTypeAdditional information
ApplicationName

string

None.

ApplicationVersion

string

None.

Browser

string

None.

BrowserVersion

string

None.

Cause

string

None.

CreatedBy

integer

None.

CreatedDate

date

None.

Message

string

None.

OS

string

None.

OSVersion

string

None.

StackTrace

string

None.

Url

string

None.

WebExceptionDataId

integer

None.

WebSessionId

integer

None.

CreatedByUser

User

None.

WebSession

WebSession

None.

Request Formats

application/json, text/json

Sample:
{
  "applicationName": "sample string 1",
  "applicationVersion": "sample string 2",
  "browser": "sample string 3",
  "browserVersion": "sample string 4",
  "cause": "sample string 5",
  "createdBy": 6,
  "createdDate": "2022-11-04T03:01:55.5023267+00:00",
  "message": "sample string 8",
  "os": "sample string 9",
  "osVersion": "sample string 10",
  "stackTrace": "sample string 11",
  "url": "sample string 12",
  "webExceptionDataId": 13,
  "webSessionId": 1,
  "createdByUser": {
    "userId": 1,
    "username": "sample string 2",
    "firstName": "sample string 3",
    "lastName": "sample string 4",
    "email": "sample string 5",
    "isActive": true,
    "isSystem": true,
    "isADBased": true,
    "businessUnitId": 9,
    "permissionIds": [
      1,
      2
    ],
    "fullName": "sample string 3 sample string 4",
    "businessUnit": {
      "businessUnitId": 1,
      "description": "sample string 2",
      "isAHS": true
    }
  },
  "webSession": {
    "webSessionId": 1,
    "ipAddress": "sample string 2",
    "browser": "sample string 3",
    "version": "sample string 4",
    "createdBy": 5,
    "createdDate": "2022-11-04T03:01:55.5023267+00:00",
    "aspNetUserId": 1,
    "createdByUser": {
      "userId": 1,
      "username": "sample string 2",
      "firstName": "sample string 3",
      "lastName": "sample string 4",
      "email": "sample string 5",
      "isActive": true,
      "isSystem": true,
      "isADBased": true,
      "businessUnitId": 9,
      "permissionIds": [
        1,
        2
      ],
      "fullName": "sample string 3 sample string 4",
      "businessUnit": {
        "businessUnitId": 1,
        "description": "sample string 2",
        "isAHS": true
      }
    }
  }
}

text/html

Sample:
{"applicationName":"sample string 1","applicationVersion":"sample string 2","browser":"sample string 3","browserVersion":"sample string 4","cause":"sample string 5","createdBy":6,"createdDate":"2022-11-04T03:01:55.5023267+00:00","message":"sample string 8","os":"sample string 9","osVersion":"sample string 10","stackTrace":"sample string 11","url":"sample string 12","webExceptionDataId":13,"webSessionId":1,"createdByUser":{"userId":1,"username":"sample string 2","firstName":"sample string 3","lastName":"sample string 4","email":"sample string 5","isActive":true,"isSystem":true,"isADBased":true,"businessUnitId":9,"permissionIds":[1,2],"fullName":"sample string 3 sample string 4","businessUnit":{"businessUnitId":1,"description":"sample string 2","isAHS":true}},"webSession":{"webSessionId":1,"ipAddress":"sample string 2","browser":"sample string 3","version":"sample string 4","createdBy":5,"createdDate":"2022-11-04T03:01:55.5023267+00:00","aspNetUserId":1,"createdByUser":{"userId":1,"username":"sample string 2","firstName":"sample string 3","lastName":"sample string 4","email":"sample string 5","isActive":true,"isSystem":true,"isADBased":true,"businessUnitId":9,"permissionIds":[1,2],"fullName":"sample string 3 sample string 4","businessUnit":{"businessUnitId":1,"description":"sample string 2","isAHS":true}}}}

application/xml, text/xml

Sample:
<WebExceptionData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AHS.Server.Entities">
  <ApplicationName>sample string 1</ApplicationName>
  <ApplicationVersion>sample string 2</ApplicationVersion>
  <Browser>sample string 3</Browser>
  <BrowserVersion>sample string 4</BrowserVersion>
  <Cause>sample string 5</Cause>
  <CreatedBy>6</CreatedBy>
  <CreatedByUser>
    <BusinessUnit>
      <BusinessUnitId>1</BusinessUnitId>
      <Description>sample string 2</Description>
      <IsAHS>true</IsAHS>
    </BusinessUnit>
    <BusinessUnitId>9</BusinessUnitId>
    <Email>sample string 5</Email>
    <FirstName>sample string 3</FirstName>
    <IsADBased>true</IsADBased>
    <IsActive>true</IsActive>
    <IsSystem>true</IsSystem>
    <LastName>sample string 4</LastName>
    <PermissionIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:short>1</d3p1:short>
      <d3p1:short>2</d3p1:short>
    </PermissionIds>
    <UserId>1</UserId>
    <Username>sample string 2</Username>
  </CreatedByUser>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2022-11-04T03:01:55.5023267Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <Message>sample string 8</Message>
  <OS>sample string 9</OS>
  <OSVersion>sample string 10</OSVersion>
  <StackTrace>sample string 11</StackTrace>
  <Url>sample string 12</Url>
  <WebExceptionDataId>13</WebExceptionDataId>
  <WebSession>
    <AspNetUserId>1</AspNetUserId>
    <Browser>sample string 3</Browser>
    <CreatedBy>5</CreatedBy>
    <CreatedByUser>
      <BusinessUnit>
        <BusinessUnitId>1</BusinessUnitId>
        <Description>sample string 2</Description>
        <IsAHS>true</IsAHS>
      </BusinessUnit>
      <BusinessUnitId>9</BusinessUnitId>
      <Email>sample string 5</Email>
      <FirstName>sample string 3</FirstName>
      <IsADBased>true</IsADBased>
      <IsActive>true</IsActive>
      <IsSystem>true</IsSystem>
      <LastName>sample string 4</LastName>
      <PermissionIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:short>1</d4p1:short>
        <d4p1:short>2</d4p1:short>
      </PermissionIds>
      <UserId>1</UserId>
      <Username>sample string 2</Username>
    </CreatedByUser>
    <CreatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2022-11-04T03:01:55.5023267Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </CreatedDate>
    <IpAddress>sample string 2</IpAddress>
    <Version>sample string 4</Version>
    <WebSessionId>1</WebSessionId>
  </WebSession>
  <WebSessionId>1</WebSessionId>
</WebExceptionData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.