POST api/Comments/Units

Add Unit Comment

Request Information

Parameters

NameDescriptionAdditional information
comment
NewUnitCommentInputModel

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "UnitNumber": "sample string 1",
  "BusinessUnitID": "sample string 2",
  "SourceSystemKey": "b91846fa-0b60-498a-a91e-598e1ea770bf",
  "UserID": "sample string 3",
  "SourceSystem": "sample string 4",
  "IsPublic": true,
  "SubCategoryID": "0aa64275-eb5c-4402-9a62-541bfbb3e648",
  "CommentText": "sample string 7",
  "UserName": "sample string 8"
}

text/javascript

Sample:
{"UnitNumber":"sample string 1","BusinessUnitID":"sample string 2","SourceSystemKey":"b91846fa-0b60-498a-a91e-598e1ea770bf","UserID":"sample string 3","SourceSystem":"sample string 4","IsPublic":true,"SubCategoryID":"0aa64275-eb5c-4402-9a62-541bfbb3e648","CommentText":"sample string 7","UserName":"sample string 8"}

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

Response Information

IHttpActionResult

Response body formats

application/json, text/json, text/javascript

Sample:

Sample not available.