Web service API

How to use PageSeeder's Web service API

move uri fragment

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

com.pageseeder.psml.MoveFragment

Description

Move a Fragment

Move an existing fragment.

Parameters

NameDescriptionRequiredTypeDefault value
afterfragment ID of the fragment to insert the fragment after (required if no section or beforefragment, overrides section and beforefragment) maybe string
beforefragment ID of the fragment to insert the fragment before (required if no section or afterfragment, overrides section) maybe string
section ID of the section to append the fragment to after other fragments (required if no beforefragment or afterfragment) maybe string

Permission

Undocumented permissions requirements.

Response

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

Example:


<fragment-move>
  <document-fragment>
    <locator id="325" fragment="example" editid="6340" modified="2015-03-24T13:21:57"/>
    <fragment id="example">
      <para>This is the fragment content</para>
    </fragment>
  </document-fragment>
</fragment-move>

Error Handling

No specific errors expected for this generator.

Created on , last edited on