POST api/Client/Definition/SaveComment

Request Information

URI Parameters

None.

Body Parameters

CommentRequestModel
NameDescriptionTypeAdditional information
CustomerId

integer

None.

TeacherId

integer

None.

ReservationId

integer

None.

RegardingObjectType

integer

None.

Type

integer

None.

PeriodId

integer

None.

Message

string

None.

CompanyId

integer

None.

Id

integer

None.

CreatedOn

date

None.

ModifiedOn

date

None.

Status

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "TeacherId": 1,
  "ReservationId": 1,
  "RegardingObjectType": 1,
  "Type": 1,
  "PeriodId": 1,
  "Message": "sample string 1",
  "CompanyId": 2,
  "Id": 3,
  "CreatedOn": "2025-10-25T21:04:11.1299068+03:00",
  "ModifiedOn": "2025-10-25T21:04:11.1299068+03:00",
  "Status": 4
}

application/xml, text/xml

Sample:
<CommentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entities.Models.Client.Definition">
  <CreatedOn xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">2025-10-25T21:04:11.1299068+03:00</CreatedOn>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">3</Id>
  <ModifiedOn xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">2025-10-25T21:04:11.1299068+03:00</ModifiedOn>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">4</Status>
  <CompanyId>2</CompanyId>
  <CustomerId>1</CustomerId>
  <Message>sample string 1</Message>
  <PeriodId>1</PeriodId>
  <RegardingObjectType>1</RegardingObjectType>
  <ReservationId>1</ReservationId>
  <TeacherId>1</TeacherId>
  <Type>1</Type>
</CommentRequestModel>

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

Response Information

Resource Description

ResultModelOfCommentResponseModel
NameDescriptionTypeAdditional information
Response

boolean

None.

Message

string

None.

Exception

string

None.

Data

CommentResponseModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": true,
  "Message": "sample string 2",
  "Exception": "sample string 3",
  "Data": {
    "CustomerId": 1,
    "TeacherId": 1,
    "ReservationId": 1,
    "RegardingObjectType": 1,
    "Type": 1,
    "Message": "sample string 1",
    "CustomerFullName": "sample string 2",
    "TeacherFullName": "sample string 3",
    "PeriodName": "sample string 4",
    "PeriodId": 1,
    "Id": 5,
    "CreatedOn": "2025-10-25T21:04:11.1454967+03:00",
    "ModifiedOn": "2025-10-25T21:04:11.1454967+03:00",
    "Status": 6
  }
}

application/xml, text/xml

Sample:
<ResultModelOfCommentResponseModelIjrq4xa9 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Entities.Models.Client.Definition">
    <CreatedOn>2025-10-25T21:04:11.1454967+03:00</CreatedOn>
    <Id>5</Id>
    <ModifiedOn>2025-10-25T21:04:11.1454967+03:00</ModifiedOn>
    <Status>6</Status>
    <d2p1:CustomerFullName>sample string 2</d2p1:CustomerFullName>
    <d2p1:CustomerId>1</d2p1:CustomerId>
    <d2p1:Message>sample string 1</d2p1:Message>
    <d2p1:PeriodId>1</d2p1:PeriodId>
    <d2p1:PeriodName>sample string 4</d2p1:PeriodName>
    <d2p1:RegardingObjectType>1</d2p1:RegardingObjectType>
    <d2p1:ReservationId>1</d2p1:ReservationId>
    <d2p1:TeacherFullName>sample string 3</d2p1:TeacherFullName>
    <d2p1:TeacherId>1</d2p1:TeacherId>
    <d2p1:Type>1</d2p1:Type>
  </Data>
  <Exception>sample string 3</Exception>
  <Message>sample string 2</Message>
  <Response>true</Response>
</ResultModelOfCommentResponseModelIjrq4xa9>