POST api/Report/emailHistory

Request Information

URI Parameters

None.

Body Parameters

ReportParameters
NameDescriptionTypeAdditional information
BeginDate

date

None.

EndDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "BeginDate": "2025-07-06T12:09:27.3306786+00:00",
  "EndDate": "2025-07-06T12:09:27.3306786+00:00"
}

text/html

Sample:
{"BeginDate":"2025-07-06T12:09:27.3306786+00:00","EndDate":"2025-07-06T12:09:27.3306786+00:00"}

application/xml, text/xml

Sample:
<ReportParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VetAPI.Models">
  <BeginDate>2025-07-06T12:09:27.3306786+00:00</BeginDate>
  <EndDate>2025-07-06T12:09:27.3306786+00:00</EndDate>
</ReportParameters>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ReportParameters'.

Response Information

Resource Description

Collection of EmailHistory
NameDescriptionTypeAdditional information
EmailHistoryId

integer

None.

PracticeId

integer

None.

CustomerId

integer

None.

ToEmail

string

None.

Subject

string

None.

Status

string

None.

DateStamp

date

None.

Body

string

None.

Type

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "EmailHistoryId": 1,
    "PracticeId": 2,
    "CustomerId": 1,
    "ToEmail": "sample string 3",
    "Subject": "sample string 4",
    "Status": "sample string 5",
    "DateStamp": "2025-07-06T12:09:27.6900268+00:00",
    "Body": "sample string 7",
    "Type": "sample string 8"
  },
  {
    "EmailHistoryId": 1,
    "PracticeId": 2,
    "CustomerId": 1,
    "ToEmail": "sample string 3",
    "Subject": "sample string 4",
    "Status": "sample string 5",
    "DateStamp": "2025-07-06T12:09:27.6900268+00:00",
    "Body": "sample string 7",
    "Type": "sample string 8"
  }
]

text/html

Sample:
[{"EmailHistoryId":1,"PracticeId":2,"CustomerId":1,"ToEmail":"sample string 3","Subject":"sample string 4","Status":"sample string 5","DateStamp":"2025-07-06T12:09:27.6900268+00:00","Body":"sample string 7","Type":"sample string 8"},{"EmailHistoryId":1,"PracticeId":2,"CustomerId":1,"ToEmail":"sample string 3","Subject":"sample string 4","Status":"sample string 5","DateStamp":"2025-07-06T12:09:27.6900268+00:00","Body":"sample string 7","Type":"sample string 8"}]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'VetAPI.DataModel.Customer' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'VetAPI.DataModel.Customer' contains cycles and cannot be serialized if reference tracking is disabled.