REST API to update Confluence Space Category

XMLWordPrintable

    • 6
    • 16

      Please provide REST API to update confluence Space Category.
      Currently there is no REST API to update Space Category.

      We have REST API to update Labels and if we update the Label using a content ID of a page it actually updates the Category as a Label, but actually it does not update the table in confluence database.

      Post data to update Category Label-
      https://<confluence-url>/rest/api/content/19540293/label

      [

      { "prefix": "team", "name": "test" }

      ]

      This updates category but when you check the space in the category it does not list the space here-
      http://<confluence-url>/spacedirectory/view.action?selectedSpaceCategory=test

       

      workaround-

      use CLI plugin command to update the category-

      ./confluence.bat --action addLabels --space  "<Space name>" --labels "team:<Category name>"

        1. Space Category.jpg
          Space Category.jpg
          32 kB
        2. Postman.jpg
          Postman.jpg
          40 kB

            Assignee:
            Unassigned
            Reporter:
            amit raj
            Votes:
            45 Vote for this issue
            Watchers:
            34 Start watching this issue

              Created:
              Updated: