---
title: "Service: /members/{member}/groups/{group}/uris/{uri}/archive [POST]"
source: https://dev.pageseeder.com/api/services/archive-uri-POST.html
description: "Archive a uri"
last_updated: 2026-08-07T17:09:54+10:00
document_type: api_endpoint
operation_id: uri-POST
resource_id: uri
path_template: /members/{member}/groups/{group}/uris/{uri}/archive
http_method: POST
api_category: uri
implementation_version: null
api_since: null
deprecated_since: null
obsolete_since: null
api_support: supported
cache_control: N/A
generated_at: 2026-08-07
tokens: ~383
---

# /members/\{member\}/groups/\{group\}/uris/\{uri\}/archive \[POST\]

## Description

Archive a document or a folder.

If the URI is a folder this service starts an [Asynchronous process](../usage/asynchronous_process.md).

This service can be used to archive a [URI](../../reference/glossary/uri.md) (that is either a document or a folder) by moving it to the [Archive](../../reference/glossary/archive.md) folder for the specified group.

### Documents

If the URI corresponds to a [Document](../../reference/glossary/document.md), the URI is moved to the archive folder. If there is a corresponding file in the underlying file system, it is also moved.

### Folders

If the URI corresponds to a [Folder](../../reference/glossary/folder.md), its contents are moved in a separate thread provided there are no sub-folders. It also moves any underlying physical file if applicable.

## Parameters

| Name | Description | Required | Type | Default |
| --- | --- | --- | --- | --- |
| removexrefs | Whether to remove image references and outgoing xrefs from the archived documents | no | boolean | `false` |

## Permission

This service requires contributor or higher.

## Response

This service returns the following XML:

```lang-xml

<uri-archive>
  [<thread ...> ... </thread>|<uri ...> ... </uri>]
</uri-archive>
```

## Error Handling

| Code | Cause / Description |
| --- | --- |
| 0x1202 | The ‘archive’ folder for a group cannot be removed |
| 0x1203 | The URI is already archived |
| 0x1204 | There is no default Group URI |

