---
title: "Service: /members/{member}/groups/{group}/uris/{uri}/fragments/{+fragment} [PUT]"
source: https://dev.pageseeder.com/api/services/uri-fragment-PUT.html
description: "PUT endpoint for updating fragment content within a PageSeeder document. Creates new edits on specified fragments with optional draft mode, labels, and notes. Requires contributor permissions."
last_updated: 2026-09-02T11:36:02+10:00
document_type: api_endpoint
operation_id: psml-PUT
resource_id: psml
path_template: /members/{member}/groups/{group}/uris/{uri}/fragments/{+fragment}
http_method: PUT
api_category: psml
implementation_version: 6.2004
api_since: 5.0100
deprecated_since: null
obsolete_since: null
api_support: supported
cache_control: N/A
generated_at: 2026-09-02
tokens: ~685
---

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

## Description

Fragment's Content.

Create new edit on [fragment](../../reference/glossary/fragment.md) provided.

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

## Parameters

| Name | Description | Required | Type | Default |
| --- | --- | --- | --- | --- |
| content | New fragment content. **DEPRECATED**, use enclosed entity body of the request | maybe | string |  |
| draft | A flag to save edit as a draft | no | boolean | `false` |
| html | A flag to specify if content is HTML | no | boolean | `false` |
| labels | The label values for the edit | no | labels |  |
| lastmodified | The last modified date/time (ISO-8601) of the fragment (prevents edit clashes) | no | date |  |
| 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 | labels | `false` |
| note-title | Title for edit note | no | string | Edit Note |
| position | The position (instance number) of this document in the publication (requires `publicationid`) | no | integer | `1` |
| publicationid | The `ID` of the publication context for this document to return numbering (requires `transclude=true`) | no | publicationid |  |
| transclude | A flag to resolve transclusions when outputting result | no | boolean | `false` |

## 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 their are unresolved cross references in the fragment.

Example:

```xml
<fragment-creation [unresolved-xrefs="true"]>
  <document-fragment [draft="true"]>
    <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

| Code | Cause / Description |
| --- | --- |
| 0x120B | Error processing XRefs |
| 0x120C | Error creating fragment |
| 0x120D | Content validation error |
| 0x120E | lastmodified date is invalid |
| 0x120F | Someone has modified the fragment while you were editing |
| 0x122D | The fragment is invalid |

