PUT api/Comments/WorkOrder/{workorderId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
workorderId

string

Required

Body Parameters

ClientCommentInsertDTO
NameDescriptionTypeAdditional information
Id

integer None.
Subject

string None.
Body

string None.
WorkOrderNumber

string None.
AllowClient

boolean None.
AllowVendor

boolean None.
AllowInternal

boolean None.
AllowCorporate

boolean None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "subject": "sample string 2",
  "body": "sample string 3",
  "workOrderNumber": "sample string 4",
  "allowClient": true,
  "allowVendor": true,
  "allowInternal": true,
  "allowCorporate": true
}

application/xml, text/xml

Sample:
<ClientCommentInsertDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ControlESI.FMPilot.Core.BE.Entities.WorkOrder">
  <AllowClient>true</AllowClient>
  <AllowCorporate>true</AllowCorporate>
  <AllowInternal>true</AllowInternal>
  <AllowVendor>true</AllowVendor>
  <Body>sample string 3</Body>
  <Id>1</Id>
  <Subject>sample string 2</Subject>
  <WorkOrderNumber>sample string 4</WorkOrderNumber>
</ClientCommentInsertDTO>

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

Response Information

Resource Description

CommentFragment
NameDescriptionTypeAdditional information
Id

integer None.
Subject

string None.
Body

string None.
WorkOrderNumber

string None.
OwnerUserId

integer None.
CreateUser

string None.
CreateDateTime

date None.
AllowInternal

boolean None.
AllowClient

boolean None.
AllowVendor

boolean None.
AllowCorporate

boolean None.
WorkOrderStatusID

integer None.
CommentTypeID

integer None.
IsEmailHighImportance

boolean None.
RequestCodeID

integer None.
User

string None.
Role

string None.
Company

string None.
FirstName

string None.
LastName

string None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "subject": "sample string 2",
  "body": "sample string 3",
  "workOrderNumber": "sample string 4",
  "ownerUserId": 1,
  "createUser": "sample string 5",
  "createDateTime": "2024-05-19T21:51:42.3872122Z",
  "allowInternal": true,
  "allowClient": true,
  "allowVendor": true,
  "allowCorporate": true,
  "workOrderStatusID": 1,
  "commentTypeID": 1,
  "isEmailHighImportance": true,
  "requestCodeID": 1,
  "user": "sample string 8",
  "role": "sample string 9",
  "company": "sample string 10",
  "firstName": "sample",
  "lastName": "string"
}

application/xml, text/xml

Sample:
<CommentFragment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ControlESI.FMPilot.Core.BE.Entities.WorkOrder">
  <AllowClient>true</AllowClient>
  <AllowCorporate>true</AllowCorporate>
  <AllowInternal>true</AllowInternal>
  <AllowVendor>true</AllowVendor>
  <Body>sample string 3</Body>
  <CommentTypeID>1</CommentTypeID>
  <Company>sample string 10</Company>
  <CreateDateTime>2024-05-19T21:51:42.3872122+00:00</CreateDateTime>
  <CreateUser>sample string 5</CreateUser>
  <FirstName>sample</FirstName>
  <Id>1</Id>
  <IsEmailHighImportance>true</IsEmailHighImportance>
  <LastName>string</LastName>
  <OwnerUserId>1</OwnerUserId>
  <RequestCodeID>1</RequestCodeID>
  <Role>sample string 9</Role>
  <Subject>sample string 2</Subject>
  <User>sample string 8</User>
  <WorkOrderNumber>sample string 4</WorkOrderNumber>
  <WorkOrderStatusID>1</WorkOrderStatusID>
</CommentFragment>