REST API - setWorkItemPriority

The table summarizes the REST API - setWorkItemPriority.

Request

Format
PUT <baseurl>/workitem/setpriority
Body setWorkItemPriorityResponse element (from the WorkItemManagementService schema).

Response

JSON Returns a JSON representation of the content of the setWorkItemPriorityResponse element.
XML Returns the content of the setWorkItemPriorityResponse element (from the WorkItemManagementService schema)

Example

Request
PUT <baseurl>/workitem/setpriority
Request body
<setWorkItemPriority xmlns="http://api.brm.n2.tibco.com">
  <workItemIDandPriority xmlns="">
    <workItemID id="14"/>
    <workItemPriority>
      <absPriority>51</absPriority>
    </workItemPriority>
  </workItemIDandPriority>
</setWorkItemPriority>
Response
{
    "workItemID": {
        "@id": "14",
        "@version": "1"
    }
}