Web service API

How to use PageSeeder's Web service API

schedule publish action

/publish/schedule [POST]

com.pageseeder.publish.PublishEventAction

Description

"Pause/continue/start" a scheduled publish job.

Three actions are allowed on a scheduled publish event:

  • pause: stop this event from running when scheduled
  • continue: run this event at scheduled times ('unpause' the event)
  • start: run the event immediately (useful for testing)

Parameters

NameDescriptionRequiredTypeDefault value
actionThe action on the event (pause|continue|start)yesenum
eventidThe ID of the event to updateyesstring

Permission

Undocumented permissions requirements.

Response

Below is an example of the XML returned.

<event id="d539a5998e9655a62fc7cbcc5d32990e"
    process-id="id-22519237f5d798c8db16b080cc729874"
    finished="true" paused="true"> 
  <project>myproject</project>
  <start>2016-02-15T12:29:00+11:00</start>
  <next>2018-10-06T11:29:00+10:00</next>
  <end>2016-07-26T11:30:00+10:00</end>
  <target name="create-document"> 
    <description>Create Documents</description>
    <param name="max-size" value="10"/>
    <param name="folder"   value="reports" />
   </target>
</event>

Error Handling

No specific errors expected for this generator.

Created on , last edited on