{
  "info": {
    "_postman_id": "959da176-e745-4762-870e-20b852184f7d",
    "name": "Atlassian wiki/rest/api/content-states/",
    "description": "Needs description.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-06-05T15:06:09.000Z",
    "updatedAt": "2026-06-05T15:06:09.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-959da176-e745-4762-870e-20b852184f7d"
  },
  "item": [
    {
      "name": "wiki",
      "item": [
        {
          "name": "rest",
          "item": [
            {
              "name": "api",
              "item": [
                {
                  "name": "content-states",
                  "item": [
                    {
                      "name": "delete",
                      "item": [
                        {
                          "name": "Atlassian Bulk Remove Content States From Content",
                          "id": "5a0c77cc-b867-4ae9-8ecb-663017434473",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"ids\": [\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    },\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    }\n  ]\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/wiki/rest/api/content-states/delete?status=draft",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "wiki",
                                "rest",
                                "api",
                                "content-states",
                                "delete"
                              ],
                              "query": [
                                {
                                  "description": "(Required) Set status to one of [current,draft].",
                                  "key": "status",
                                  "value": "draft"
                                }
                              ]
                            },
                            "description": "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."
                          },
                          "response": [
                            {
                              "id": "6c7a95a6-1934-4097-8cf6-fd808314ed78",
                              "name": "Returned if a task to remove content states is created. Returns the taskId.\nThis task id can be passed into /wiki/rest/api/content-states/task/{taskId}",
                              "originalRequest": {
                                "method": "POST",
                                "header": [
                                  {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                  },
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "body": {
                                  "mode": "raw",
                                  "raw": "{\n  \"ids\": [\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    },\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    }\n  ]\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/wiki/rest/api/content-states/delete?status=draft",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "wiki",
                                    "rest",
                                    "api",
                                    "content-states",
                                    "delete"
                                  ],
                                  "query": [
                                    {
                                      "description": "(Required) Set status to one of [current,draft].",
                                      "key": "status",
                                      "value": "draft"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"asyncId\": \"<string>\"\n}",
                              "createdAt": "2026-06-05T15:06:10.000Z",
                              "updatedAt": "2026-06-05T15:06:10.000Z",
                              "uid": "35240-6c7a95a6-1934-4097-8cf6-fd808314ed78"
                            },
                            {
                              "id": "0183c483-7b2a-42fe-b171-9bfdf69e8e7b",
                              "name": "Returned if too many contents, no contents, no content state, or no status are passed in.",
                              "originalRequest": {
                                "method": "POST",
                                "header": [
                                  {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                  }
                                ],
                                "body": {
                                  "mode": "raw",
                                  "raw": "{\n  \"ids\": [\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    },\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    }\n  ]\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/wiki/rest/api/content-states/delete?status=draft",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "wiki",
                                    "rest",
                                    "api",
                                    "content-states",
                                    "delete"
                                  ],
                                  "query": [
                                    {
                                      "description": "(Required) Set status to one of [current,draft].",
                                      "key": "status",
                                      "value": "draft"
                                    }
                                  ]
                                }
                              },
                              "status": "Bad Request",
                              "code": 400,
                              "_postman_previewlanguage": "text",
                              "header": [],
                              "cookie": [],
                              "responseTime": null,
                              "body": null,
                              "createdAt": "2026-06-05T15:06:10.000Z",
                              "updatedAt": "2026-06-05T15:06:10.000Z",
                              "uid": "35240-0183c483-7b2a-42fe-b171-9bfdf69e8e7b"
                            },
                            {
                              "id": "4ae9573d-7c83-4840-9e41-45b7fea244da",
                              "name": "Returned if user not authenticated.",
                              "originalRequest": {
                                "method": "POST",
                                "header": [
                                  {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                  }
                                ],
                                "body": {
                                  "mode": "raw",
                                  "raw": "{\n  \"ids\": [\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    },\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    }\n  ]\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/wiki/rest/api/content-states/delete?status=draft",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "wiki",
                                    "rest",
                                    "api",
                                    "content-states",
                                    "delete"
                                  ],
                                  "query": [
                                    {
                                      "description": "(Required) Set status to one of [current,draft].",
                                      "key": "status",
                                      "value": "draft"
                                    }
                                  ]
                                }
                              },
                              "status": "Unauthorized",
                              "code": 401,
                              "_postman_previewlanguage": "text",
                              "header": [],
                              "cookie": [],
                              "responseTime": null,
                              "body": null,
                              "createdAt": "2026-06-05T15:06:10.000Z",
                              "updatedAt": "2026-06-05T15:06:10.000Z",
                              "uid": "35240-4ae9573d-7c83-4840-9e41-45b7fea244da"
                            },
                            {
                              "id": "49757e42-4431-476e-be12-a03a348672e7",
                              "name": "Returned if user not found or does not have permission for content stat",
                              "originalRequest": {
                                "method": "POST",
                                "header": [
                                  {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                  }
                                ],
                                "body": {
                                  "mode": "raw",
                                  "raw": "{\n  \"ids\": [\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    },\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    }\n  ]\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/wiki/rest/api/content-states/delete?status=draft",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "wiki",
                                    "rest",
                                    "api",
                                    "content-states",
                                    "delete"
                                  ],
                                  "query": [
                                    {
                                      "description": "(Required) Set status to one of [current,draft].",
                                      "key": "status",
                                      "value": "draft"
                                    }
                                  ]
                                }
                              },
                              "status": "Forbidden",
                              "code": 403,
                              "_postman_previewlanguage": "text",
                              "header": [],
                              "cookie": [],
                              "responseTime": null,
                              "body": null,
                              "createdAt": "2026-06-05T15:06:10.000Z",
                              "updatedAt": "2026-06-05T15:06:10.000Z",
                              "uid": "35240-49757e42-4431-476e-be12-a03a348672e7"
                            },
                            {
                              "id": "ea5bf791-b75f-437d-8ea4-b3a21d62dc70",
                              "name": "Returned if content cannot be found with the provided context.",
                              "originalRequest": {
                                "method": "POST",
                                "header": [
                                  {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                  }
                                ],
                                "body": {
                                  "mode": "raw",
                                  "raw": "{\n  \"ids\": [\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    },\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    }\n  ]\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/wiki/rest/api/content-states/delete?status=draft",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "wiki",
                                    "rest",
                                    "api",
                                    "content-states",
                                    "delete"
                                  ],
                                  "query": [
                                    {
                                      "description": "(Required) Set status to one of [current,draft].",
                                      "key": "status",
                                      "value": "draft"
                                    }
                                  ]
                                }
                              },
                              "status": "Not Found",
                              "code": 404,
                              "_postman_previewlanguage": "text",
                              "header": [],
                              "cookie": [],
                              "responseTime": null,
                              "body": null,
                              "createdAt": "2026-06-05T15:06:10.000Z",
                              "updatedAt": "2026-06-05T15:06:10.000Z",
                              "uid": "35240-ea5bf791-b75f-437d-8ea4-b3a21d62dc70"
                            }
                          ],
                          "createdAt": "2026-06-05T15:06:10.000Z",
                          "updatedAt": "2026-06-05T15:06:10.000Z",
                          "uid": "35240-5a0c77cc-b867-4ae9-8ecb-663017434473"
                        }
                      ],
                      "id": "20e1dc35-90a6-4386-998a-8d508cdeb8af",
                      "createdAt": "2026-06-05T15:06:10.000Z",
                      "updatedAt": "2026-06-05T15:06:10.000Z",
                      "uid": "35240-20e1dc35-90a6-4386-998a-8d508cdeb8af"
                    },
                    {
                      "name": "task",
                      "item": [
                        {
                          "name": "{taskId}",
                          "item": [
                            {
                              "name": "Atlassian Get Update On Long Running Task For Setting Of Content State",
                              "id": "7287d4b3-cbf6-47de-99ab-105bb7ade2dd",
                              "protocolProfileBehavior": {
                                "disableBodyPruning": true
                              },
                              "request": {
                                "method": "GET",
                                "header": [
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/wiki/rest/api/content-states/task/:taskId",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "wiki",
                                    "rest",
                                    "api",
                                    "content-states",
                                    "task",
                                    ":taskId"
                                  ],
                                  "variable": [
                                    {
                                      "id": "c2929af1-1972-4add-9dd2-0ffb54d6452c",
                                      "key": "taskId",
                                      "value": "<string>",
                                      "description": "(Required) taskId returned by put or delete requests to /wiki/rest/api/content-states"
                                    }
                                  ]
                                },
                                "description": "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"
                              },
                              "response": [
                                {
                                  "id": "fa8696ff-d6e3-415f-b1d2-e09c857a0432",
                                  "name": "Task found. State of task is returned",
                                  "originalRequest": {
                                    "method": "GET",
                                    "header": [
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      }
                                    ],
                                    "url": {
                                      "raw": "{{baseUrl}}/wiki/rest/api/content-states/task/:taskId",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "wiki",
                                        "rest",
                                        "api",
                                        "content-states",
                                        "task",
                                        ":taskId"
                                      ],
                                      "variable": [
                                        {
                                          "key": "taskId"
                                        }
                                      ]
                                    }
                                  },
                                  "status": "OK",
                                  "code": 200,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    }
                                  ],
                                  "cookie": [],
                                  "responseTime": null,
                                  "body": "{\n  \"set\": [\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    },\n    {\n      \"value\": \"reference #/components/schemas/ContentId not found in the OpenAPI spec\"\n    }\n  ],\n  \"failed\": [\n    {\n      \"value\": \"reference #/components/schemas/ContentStateFailure not found in the OpenAPI spec\"\n    },\n    {\n      \"value\": \"reference #/components/schemas/ContentStateFailure not found in the OpenAPI spec\"\n    }\n  ],\n  \"success\": \"<boolean>\",\n  \"percentage\": \"<long>\",\n  \"message\": \"<string>\",\n  \"state\": {\n    \"value\": \"reference #/components/schemas/ContentState not found in the OpenAPI spec\"\n  }\n}",
                                  "createdAt": "2026-06-05T15:06:10.000Z",
                                  "updatedAt": "2026-06-05T15:06:10.000Z",
                                  "uid": "35240-fa8696ff-d6e3-415f-b1d2-e09c857a0432"
                                },
                                {
                                  "id": "71f8858f-d3d3-44ca-a4ab-141d6ffdc42d",
                                  "name": "User not authenticated.",
                                  "originalRequest": {
                                    "method": "GET",
                                    "header": [],
                                    "url": {
                                      "raw": "{{baseUrl}}/wiki/rest/api/content-states/task/:taskId",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "wiki",
                                        "rest",
                                        "api",
                                        "content-states",
                                        "task",
                                        ":taskId"
                                      ],
                                      "variable": [
                                        {
                                          "key": "taskId"
                                        }
                                      ]
                                    }
                                  },
                                  "status": "Forbidden",
                                  "code": 403,
                                  "_postman_previewlanguage": "text",
                                  "header": [],
                                  "cookie": [],
                                  "responseTime": null,
                                  "body": null,
                                  "createdAt": "2026-06-05T15:06:10.000Z",
                                  "updatedAt": "2026-06-05T15:06:10.000Z",
                                  "uid": "35240-71f8858f-d3d3-44ca-a4ab-141d6ffdc42d"
                                },
                                {
                                  "id": "08bf4ab3-ca48-4399-83b8-6f19e390ad2f",
                                  "name": "No long running task by calling user with given taskId found.",
                                  "originalRequest": {
                                    "method": "GET",
                                    "header": [],
                                    "url": {
                                      "raw": "{{baseUrl}}/wiki/rest/api/content-states/task/:taskId",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "wiki",
                                        "rest",
                                        "api",
                                        "content-states",
                                        "task",
                                        ":taskId"
                                      ],
                                      "variable": [
                                        {
                                          "key": "taskId"
                                        }
                                      ]
                                    }
                                  },
                                  "status": "Not Found",
                                  "code": 404,
                                  "_postman_previewlanguage": "text",
                                  "header": [],
                                  "cookie": [],
                                  "responseTime": null,
                                  "body": null,
                                  "createdAt": "2026-06-05T15:06:10.000Z",
                                  "updatedAt": "2026-06-05T15:06:10.000Z",
                                  "uid": "35240-08bf4ab3-ca48-4399-83b8-6f19e390ad2f"
                                }
                              ],
                              "createdAt": "2026-06-05T15:06:10.000Z",
                              "updatedAt": "2026-06-05T15:06:10.000Z",
                              "uid": "35240-7287d4b3-cbf6-47de-99ab-105bb7ade2dd"
                            }
                          ],
                          "id": "121ce0b3-894d-473d-8dbc-c4ff2b921a2a",
                          "createdAt": "2026-06-05T15:06:10.000Z",
                          "updatedAt": "2026-06-05T15:06:10.000Z",
                          "uid": "35240-121ce0b3-894d-473d-8dbc-c4ff2b921a2a"
                        }
                      ],
                      "id": "35f80844-8485-4a9a-9c36-a413788807b6",
                      "createdAt": "2026-06-05T15:06:10.000Z",
                      "updatedAt": "2026-06-05T15:06:10.000Z",
                      "uid": "35240-35f80844-8485-4a9a-9c36-a413788807b6"
                    }
                  ],
                  "id": "14fa2a72-c585-4ad8-a0f9-792de377f514",
                  "createdAt": "2026-06-05T15:06:10.000Z",
                  "updatedAt": "2026-06-05T15:06:10.000Z",
                  "uid": "35240-14fa2a72-c585-4ad8-a0f9-792de377f514"
                }
              ],
              "id": "fc31d725-caf2-46bd-acd7-e1fffe16e086",
              "createdAt": "2026-06-05T15:06:10.000Z",
              "updatedAt": "2026-06-05T15:06:10.000Z",
              "uid": "35240-fc31d725-caf2-46bd-acd7-e1fffe16e086"
            }
          ],
          "id": "97efa6c3-3050-4f53-b929-e4399a8243c5",
          "createdAt": "2026-06-05T15:06:10.000Z",
          "updatedAt": "2026-06-05T15:06:10.000Z",
          "uid": "35240-97efa6c3-3050-4f53-b929-e4399a8243c5"
        }
      ],
      "id": "5dbbbc7a-08e7-4822-9de3-427cf35076b9",
      "createdAt": "2026-06-05T15:06:10.000Z",
      "updatedAt": "2026-06-05T15:06:10.000Z",
      "uid": "35240-5dbbbc7a-08e7-4822-9de3-427cf35076b9"
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "//your-domain.atlassian.net"
    }
  ]
}