Skip to main content

 Services

Web services from /about to /webhooks

get uri drafts

/groups/{group}/uris/{uri}/drafts [GET]

com.pageseeder.psml.GetDraftEdits

Description

Get the draft edits for a URI.

Parameters

NameDescriptionRequiredTypeDefault
contentsThe draft fragment contents to include, can be none, allnoenumnone
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 resolved (requires contents=all)nobooleanfalse

Permission

This service is restricted to guest and higher unless the group is accessible to public.

Response

The output has the following format:

<drafts [modified="2012-03-07T11:30:00+10:00"]>
  <draft id="234"
         created="2012-03-08T12:34:00+10:00">    
    <author id="12" ... >
      <fullname>John Jones</fullname>
    </author>
   [<acceptedby date="[date/time]" id="56" ... >
       <fullname>Alan Smith</fullname>
    </acceptedby>]
    <context fragment="2">
      <uri id="789">...</uri>
    </context>
   [<document-fragment> ... </document-fragment>]
  </draft>
  ...
</drafts>

Error Handling

No specific errors expected for this service.

Created on , last edited on