POST api/IFMBridge/workOrders/{workOrderIdOrNumber}/comments

Request Information

URI Parameters

NameDescriptionTypeAdditional information
workOrderIdOrNumber

string

Required

Body Parameters

WorkOrdersCommentViewModel
NameDescriptionTypeAdditional information
Id

integer None.
WorkOrderNumber

string None.
CreateUser

string None.
Subject

string None.
Body

string None.
AllowClient

boolean None.
AllowVendor

boolean None.
AllowCorporate

boolean None.
WorkOrderStatusID

integer None.
ScheduleDateTime

date None.
VendorId

integer None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "workOrderNumber": "sample string 2",
  "createUser": "sample string 3",
  "subject": "sample string 4",
  "body": "sample string 5",
  "allowClient": true,
  "allowVendor": true,
  "allowCorporate": true,
  "workOrderStatusID": 1,
  "scheduleDateTime": "2024-11-10T21:43:25.9279904Z",
  "vendorId": 1
}

application/xml, text/xml

Sample:
<WorkOrdersCommentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ControlESI.FMPilot.Core.Entities.IFMBridge">
  <AllowClient>true</AllowClient>
  <AllowCorporate>true</AllowCorporate>
  <AllowVendor>true</AllowVendor>
  <Body>sample string 5</Body>
  <CreateUser>sample string 3</CreateUser>
  <Id>1</Id>
  <ScheduleDateTime>2024-11-10T21:43:25.9279904+00:00</ScheduleDateTime>
  <Subject>sample string 4</Subject>
  <VendorId>1</VendorId>
  <WorkOrderNumber>sample string 2</WorkOrderNumber>
  <WorkOrderStatusID>1</WorkOrderStatusID>
</WorkOrdersCommentViewModel>

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>