---
ai:
  exclude: true
search:
  tags:
    - Space
    - PUT
seo:
  description: >-
    Archive the given Space identified by spaceKey. This… Reference for the PUT
    /rest/api/space/{spaceKey}/archive endpoint in the Confluence Data Center
    API.
sidebar:
  label: Archive space
  badge: PUT
title: Archive space
type: openapi-operation
---
Archive the given Space identified by spaceKey. This method is idempotent i.e., if the Space is already archived then no action will be taken.

`PUT /rest/api/space/{spaceKey}/archive`

**Responses**

- `204` — No Content if the Space is archived successfully or already has status 'ARCHIVED'.
- `401` — Returned if the calling user is not authenticated.
- `403` — Returned if the calling user does not have permission to edit the Space.
- `404` — Returned if there is no space with the given key, or if the calling user does not have permission to view it.
