REST API - comment - Work Item Id

This table summarizes the REST API - comment - work item id.

Request

Format
POST <baseurl>/audit/comment/workitem/<workitemid>
Path Parameters workitemid: identify the work item whose events you want to audit. Can be obtained from getWorkListItems.
Query Parameters parentid: (Optional): The audit ID returned in the CommentResponse element in response to a previous request.
Body comment element (required): This element (from the EventCollectorUpdateService schema defines the chart query.

Response

JSON Returns a JSON representation of the content of the CommentResponse element.
XML Returns the content of the CommentResponse element (from the EventCollectorUpdateService schema).

Example

Request
POST <baseurl>/audit/comment/workitem/1
Request Body
{
  "Comment": { "message": "This is a work item" }
}
Response
1686