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
afterfragmentID of the fragment to insert the fragment after (required if no section or beforefragment, overrides section and beforefragment).maybestring
beforefragmentID of the fragment to insert the fragment before (required if no section or afterfragment, overrides section).maybestring
sectionID of the section to append the fragment to after other fragments (required if no beforefragment or afterfragment).maybestring

Permission

Permissions requirements to be updated.

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