REST API - addCurrentResourceToView

The table summarizes the REST API - addCurrentResourceToView.

Request

Format
PUT <baseurl>/worklist/addresourcetoview/<viewid>
Path parameters viewid: The unique ID of the work view.
Query parameters apiversion=version (optional, default = 1): Defines the format in which the operation returns its response. If version is:
  • < 2, the response is returned as an unwrapped primitive.
  • 2, the response data is wrapped as an XML fragment.

Response

JSON Returns a JSON representation of the content of the addCurrentResourceToViewResponse element.
XML Returns the content of the addCurrentResourceToViewResponse element (from the WorkListService schema)

Example

Request
PUT <baseurl>/worklist/addresourcetoview/2
Response
{
    2
}