---
title: "Service: /members/{member}/groups/{group}/uris/{uri}/fragments/{+fragment}/revert [POST]"
source: https://dev.pageseeder.com/api/services/revert-uri-fragment-POST.html
description: "POST endpoint that reverts a fragment to a previous edit version. Requires an edit ID, supports optional labels, notes, and last-modified timestamp. Returns the reverted fragment wrapped in a fragment-creation element. Requires contributor permissions."
last_updated: 2026-09-02T11:36:04+10:00
document_type: api_endpoint
operation_id: psml-POST
resource_id: psml
path_template: /members/{member}/groups/{group}/uris/{uri}/fragments/{+fragment}/revert
http_method: POST
api_category: psml
implementation_version: 6.2004
api_since: 5.6004
deprecated_since: null
obsolete_since: null
api_support: supported
cache_control: N/A
generated_at: 2026-09-02
tokens: ~479
---

# /members/\{member\}/groups/\{group\}/uris/\{uri\}/fragments/\{+fragment\}/revert \[POST\]

## Description

Revert Fragment's Content.

Revert a [fragment](../../reference/glossary/fragment.md) to the edit provided.

## Parameters

| Name | Description | Required | Type | Default |
| --- | --- | --- | --- | --- |
| editid | `ID` of the edit to get the content from or `0` for the original content | yes | string |  |
| labels | Comma-separated list of edit label values (if not specified, the labels of the edit are used, if empty, no labels are used) | no | string |  |
| lastmodified | The last modified date/time (ISO 8601) of the fragment (prevents edit clashes) | no | string |  |
| note | Content for edit notes (if exists, creates a note) | no | string |  |
| note-labels | Comma-separated list of label values for the note (if exists, creates a note) | no | string |  |
| note-title | Title for edit note | no | string | Edit Note |
| transclude | A flag to resolve transclusions when outputting result | no | boolean | `true` |

## Permission

This service requires contributor or higher.

## Response

When successful, the new fragment is returned as a [\<document-fragment\>](../elements/element_document-fragment.md) wrapped in a `<fragment-creation>` element with the following optional attributes:

- `unresolved-xrefs="true"` `–` if there are unresolved cross references in the fragment.

Example:

```xml


<fragment-creation [unresolved-xrefs="true"]> <document-fragment> <locator id="325" fragment="example" editid="6340" modified="2015-03-24T13:21:57"> <notes> <note id="6342" modified="2015-03-24T13:21:57" title="Typography"> <content>Fixed typographical error.</content> </note> </notes> </locator> <fragment id="example"> <para>This is the fragment content</para> </fragment> </document-fragment>
</fragment-creation>
```

## Error Handling

No specific errors expected for this service.

