---
title: "Service: /members/{member}/groups/{group}/uris/{uri}/structure [PUT]"
source: https://dev.pageseeder.com/api/services/uri-structure-PUT.html
description: "API endpoint for editing a PSML document's structure by reorganizing fragments. Archived fragments not in the new structure are removed, while previously archived ones can be restored. Requires contributor access."
last_updated: 2026-09-02T11:36:22+10:00
document_type: api_endpoint
operation_id: psml-PUT
resource_id: psml
path_template: /members/{member}/groups/{group}/uris/{uri}/structure
http_method: PUT
api_category: psml
implementation_version: 6.2005
api_since: 6.2002
deprecated_since: null
obsolete_since: null
api_support: experimental
cache_control: N/A
generated_at: 2026-09-02
tokens: ~319
---

# /members/\{member\}/groups/\{group\}/uris/\{uri\}/structure \[PUT\]

## Description

Edit the structure of a PSML document by providing a new structure using the XML format shown in the response.

- If the ID of an existing fragment is not in the new structure the fragment is archived.
- If the ID of an archived fragment is in the new structure the fragment is unarchived.

> **Note:** The new structure must be in the enclosed entity content of the request.

## Parameters

| Name | Description | Required | Type | Default value |
| --- | --- | --- | --- | --- |
| lastmodified | The last modified date/time (ISO 8601) of the URI structure (prevents edit clashes) | no | date |  |

## Permission

This service requires contributor or higher.

## Response

The output has the following format:

```xml
   <document>
     <section id="title" [title="My section title for UI"]>
       [<title>My section title for content</title>]
       <fragment-ref id="1" />
       ...
     </section>
     [<toc/>]
     <section id="content" [title="My section title for UI"]>
       [<title>My section title for content</title>]
       <fragment-ref id="2" />
       ...
     </section>
     ...
   </document>
```

## Error handling

No specific errors expected for this generator.

