POST v1/ServiceContract/{serviceContractId}/Comments

Adds the specified ServiceContractComment.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serviceContractId

The ServiceContract identifier.

integer

Required.

Body Parameters

The ServiceContractComment.

ServiceContractCommentChanges
NameDescriptionTypeAdditional information
Id

Gets or sets the identifier.

integer

None.

Comment

Gets or sets the comment.

string

Required

EmployeeId

Gets or sets the employee identifier.

integer

None.

EmployeeName

Gets or sets the name of the employee.

string

None.

TimeStamp

Gets or sets the time stamp.

date

None.

ServiceContractId

Gets or sets the ServiceContractId identifier.

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Comment": "sample string 2",
  "EmployeeId": 1,
  "EmployeeName": "sample string 3",
  "TimeStamp": "2026-01-11T16:14:43.5054286+01:00",
  "ServiceContractId": 1
}

application/xml, text/xml

Sample:
<ServiceContractCommentChanges xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>1</Id>
  <Comment>sample string 2</Comment>
  <EmployeeId>1</EmployeeId>
  <EmployeeName>sample string 3</EmployeeName>
  <TimeStamp>2026-01-11T16:14:43.5054286+01:00</TimeStamp>
  <ServiceContractId>1</ServiceContractId>
</ServiceContractCommentChanges>

Response Information

Resource Description

The HttpResponseMessage object.

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.