{
  "opencollection": "1.0.0",
  "info": {
    "name": "Atlassian Confluence Content States API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Content States",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Bulk Remove Content States From Content",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "//your-domain.atlassian.net/wiki/rest/api/content-states/delete",
            "params": [
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Set status to one of [current,draft]."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a long running task that Removes content state from draft or published versions of pages specified.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**<br>Content Edit Permission for a content to have its state removed via this endpoint."
        },
        {
          "info": {
            "name": "Atlassian Get Update on Long Running Task for Setting of Content State",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/content-states/task/:taskId",
            "params": [
              {
                "name": "taskId",
                "value": "",
                "type": "path",
                "description": "taskId returned by put or delete requests to /wiki/rest/api/content-states"
              }
            ]
          },
          "docs": "Get Status of long running task that was previously created to set or remove content states from content.<br>User must first create a task by passing in details to /wiki/rest/api/content-states PUT or DELETE endpoints.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**<br>Must have created long running task"
        }
      ]
    }
  ],
  "bundled": true
}