Dashboard > Bla-bla List > ... > REST API > reorderentry
Bla-bla List Log In | Sign Up   View a printable version of the current page.
reorderentry


Added by Geert Bevin, last edited by Geert Bevin on Mar 24, 2005  (view change)
Labels: 
(None)

(authenticated)

Changes the priority of an entry in the list and adapts the other entries so that the all priorities continue to be ascending without holes. The entry that's currently at the new priority, will be shifted down. To move an entry to the end, use a priority that's larger that the current maximum value.

Submissions
reorderEntry
Reorders the entry.
Parameters
listId The id of the list that the entry belongs to.
from The current priority of the entry.
to The new priority of the entry.

example request

http://blablalist.com/reorderentry?
    authid=622c895dec2d96cf127f0d557785d200&
    submission=reorderEntry&
    listId=25&
    from=0&
    to=2

example result

<reorderentry>
    <success listid="25" from="0" to="2"/>
</reorderentry>

failure

If the back-end wasn't able to perform the reordering, you'll receive a failed tag instead of a success tag, for instance:

<reorderentry authid="622c895dec2d96cf127f0d557785d200">
    <failed listid="25" from="20" to="2"/>
</reorderentry>



Are you enjoying Confluence? Please consider purchasing it today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.1a Build:#515 May 19, 2006) - Bug/feature request - Contact Administrators