{
  "opencollection": "1.0.0",
  "info": {
    "name": "Nuxeo Platform ACL Task API",
    "version": "LTS 2021"
  },
  "items": [
    {
      "info": {
        "name": "Task",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Query tasks by user and workflow ids",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}:{port}/nuxeo/api/v1/task",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "query",
                "description": "id of the user who is actor of the task"
              },
              {
                "name": "workflowInstanceId",
                "value": "",
                "type": "query",
                "description": "id of the workflow instance the task belongs to"
              },
              {
                "name": "workflowModelName",
                "value": "",
                "type": "query",
                "description": "name of the workflow model of the task (i.e. 'SerialDocumentReview', 'ParallelDocumentReview'). Deprecated since 11.1 as this parameter forces post-filtering and prevents paginated results."
              },
              {
                "name": "currentPageIndex",
                "value": "",
                "type": "query",
                "description": "Index of the current page"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Offset of the page to retrieve. If set, the 'currentPageIndex' parameter is ignored"
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query",
                "description": "Size of the page to retrieve. Ignored if offset set"
              },
              {
                "name": "maxResults",
                "value": "",
                "type": "query",
                "description": "Maximum results to retrieve"
              },
              {
                "name": "sortBy",
                "value": "",
                "type": "query",
                "description": "Property to sort by, for example 'dc:title'"
              },
              {
                "name": "sortOrder",
                "value": "",
                "type": "query",
                "description": "Sort order, accepts 'asc' or 'desc', default is 'desc'"
              }
            ]
          },
          "docs": "Only task instance which you have permission to see will be returned"
        },
        {
          "info": {
            "name": "Get a task by its id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}:{port}/nuxeo/api/v1/task/:taskId",
            "params": [
              {
                "name": "taskId",
                "value": "",
                "type": "path",
                "description": "Id of the task"
              }
            ]
          },
          "docs": "Only task instance which you have permission to see will be returned"
        },
        {
          "info": {
            "name": "Delegate a task",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{host}:{port}/nuxeo/api/v1/task/:taskId/delegate",
            "params": [
              {
                "name": "taskId",
                "value": "",
                "type": "path",
                "description": "Id of the task"
              },
              {
                "name": "delegatedActors",
                "value": "",
                "type": "query",
                "description": "comma separated ids of the delegated actors"
              },
              {
                "name": "comment",
                "value": "",
                "type": "query",
                "description": "comment"
              }
            ]
          },
          "docs": "See https://doc.nuxeo.com/x/34z1"
        },
        {
          "info": {
            "name": "Reassign a task",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{host}:{port}/nuxeo/api/v1/task/:taskId/reassign",
            "params": [
              {
                "name": "taskId",
                "value": "",
                "type": "path",
                "description": "Id of the task"
              },
              {
                "name": "actors",
                "value": "",
                "type": "query",
                "description": "comma separated ids of the new actors"
              },
              {
                "name": "comment",
                "value": "",
                "type": "query",
                "description": "comment"
              }
            ]
          },
          "docs": "See https://doc.nuxeo.com/x/1YcZAQ"
        },
        {
          "info": {
            "name": "Complete task",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{host}:{port}/nuxeo/api/v1/task/:taskId/:action",
            "params": [
              {
                "name": "taskId",
                "value": "",
                "type": "path",
                "description": "Id of the task"
              },
              {
                "name": "action",
                "value": "",
                "type": "path",
                "description": "the action to be applied when completed the task. The action determines the transition to be followed and the next task within the workflow."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Complete a workflow related task"
        }
      ]
    }
  ],
  "bundled": true
}