PUT api/Comments/WorkOrder/{workorderId}/Comments

Request Information

URI Parameters

NameDescriptionTypeAdditional information
workorderId

string

Required

Body Parameters

Collection of 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
  },
  {
    "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:
<ArrayOfClientCommentInsertDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ControlESI.FMPilot.Core.BE.Entities.WorkOrder">
  <ClientCommentInsertDTO>
    <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>
  <ClientCommentInsertDTO>
    <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>
</ArrayOfClientCommentInsertDTO>

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 'IEnumerable`1'.

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>