Skip to main content

 Services

Web services from /about to /webhooks

uri fragment

/members/{member}/groups/{group}/uris/{uri}/fragments/{+fragment} [GET]

Description

Fragment’s Content

Load the fragment content of a document.

Parameters

NameDescriptionRequiredTypeDefault
includedraftWhether draft content from the current member should be includednobooleanfalse
newpropertiesWhether new properties from the document template should be added (in response only, not in saved PSML - fragment MUST have a type or be metadata properties)nobooleanfalse
positionThe position (instance number) of this document in the publication (requires publicationid)nointeger1
publicationWhether to do default publication auto-numbering even if no publicationid (requires transclude=true)nobooleanfalse
publicationidThe ID of the publication context for this document to return numbering (requires transclude=true)nopublicationid
transcludeWhether transclusions should be resolvednobooleanfalse

Permission

This service requires guest or higher unless the group is public.

Response

When successful, the fragment is returned as a <document-fragment> element.

Example:

<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>

Error Handling

CodeCause / Description
0x0101Access forbidden, if URI was not found
0x0102Unable to find requested service, if  put a character ‘@’ or ‘,‘ in {fragment}
0x0202The Group was not found
0x0204The Member was not found
Created on , last edited on