POST api/TreatmentReview/AddTreatmentReview

Request Information

URI Parameters

None.

Body Parameters

AddTreatmentReviewDto
NameDescriptionTypeAdditional information
FirstName

string

None.

LastName

string

None.

Email

string

None.

MobileNumber

string

None.

DentistId

integer

None.

DentistComment

string

None.

PositiveComment

string

None.

CanImproveComment

string

None.

TreatmentType

TreatmentType

None.

Reviews

Collection of GetReviewMasterDto

None.

TreatmentPrice

decimal number

None.

StartDateTime

date

None.

EndDateTime

date

None.

PractitionerName

string

None.

TreatmentId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "Email": "sample string 3",
  "MobileNumber": "sample string 4",
  "DentistId": 5,
  "DentistComment": "sample string 6",
  "PositiveComment": "sample string 7",
  "CanImproveComment": "sample string 8",
  "TreatmentType": 1,
  "Reviews": [
    {
      "Id": 1,
      "ReviewTypeId": 2,
      "Rating": 3.1,
      "Description": "sample string 4",
      "ReviewId": "sample string 5"
    },
    {
      "Id": 1,
      "ReviewTypeId": 2,
      "Rating": 3.1,
      "Description": "sample string 4",
      "ReviewId": "sample string 5"
    }
  ],
  "TreatmentPrice": 1.0,
  "StartDateTime": "2025-12-12T01:35:55.882653+01:00",
  "EndDateTime": "2025-12-12T01:35:55.882653+01:00",
  "PractitionerName": "sample string 11",
  "TreatmentId": 12
}

application/xml, text/xml

Sample:
<AddTreatmentReviewDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Silver.Agenda.Core.Domain.Model.EmergencyReviews">
  <CanImproveComment>sample string 8</CanImproveComment>
  <DentistComment>sample string 6</DentistComment>
  <DentistId>5</DentistId>
  <Email>sample string 3</Email>
  <EndDateTime>2025-12-12T01:35:55.882653+01:00</EndDateTime>
  <FirstName>sample string 1</FirstName>
  <LastName>sample string 2</LastName>
  <MobileNumber>sample string 4</MobileNumber>
  <PositiveComment>sample string 7</PositiveComment>
  <PractitionerName>sample string 11</PractitionerName>
  <Reviews xmlns:d2p1="http://schemas.datacontract.org/2004/07/Silver.Agenda.Core.Domain.Model.ReviewMaster">
    <d2p1:GetReviewMasterDto>
      <d2p1:Description>sample string 4</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Rating>3.1</d2p1:Rating>
      <d2p1:ReviewId>sample string 5</d2p1:ReviewId>
      <d2p1:ReviewTypeId>2</d2p1:ReviewTypeId>
    </d2p1:GetReviewMasterDto>
    <d2p1:GetReviewMasterDto>
      <d2p1:Description>sample string 4</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Rating>3.1</d2p1:Rating>
      <d2p1:ReviewId>sample string 5</d2p1:ReviewId>
      <d2p1:ReviewTypeId>2</d2p1:ReviewTypeId>
    </d2p1:GetReviewMasterDto>
  </Reviews>
  <StartDateTime>2025-12-12T01:35:55.882653+01:00</StartDateTime>
  <TreatmentId>12</TreatmentId>
  <TreatmentPrice>1</TreatmentPrice>
  <TreatmentType>EmergencyRequest</TreatmentType>
</AddTreatmentReviewDto>

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 'AddTreatmentReviewDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.