Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-66918

Archiving personal spaces via REST API yields error

XMLWordPrintable

      Issue Summary

      When attempting to archive a personal space via the REST API only using the status:archive you're prompted with the following: 
      Cannot change space type from personal to global or vice versa

      Environment

      *Confluence Cloud personal space

      Steps to Reproduce

      1. Create or locate a personal space
      2. Make a REST API call to the following endpoint:
        1. 'https://your-domain.atlassian.net/wiki/rest/api/space/{spaceKey}'
      3. Send the following to set the space to archived:
        1. '{"status": "archived"}'
           

      Expected Results

      The personal space should change to archived.

      Actual Results

      You're presented with the following error:
      'Cannot change space type from personal to global or vice versa'

       

      Workaround

      Use the same endpoint but send the following to archive the space within the data:
      '{“type”: “personal”, “status": "archived"}'

              Unassigned Unassigned
              ssifers@atlassian.com Stephen Sifers
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: