Web service API

How to use PageSeeder's Web service API

create document

/members/{member}/groups/{group}/documents [POST]



Create a PSML document

Create a new PSML document.

Processes request for creating a new PSML document.

Note: There are various ways of specifying the target destination:

  • If the document config for the type specified has <folder> or <filename> defined then these are used to compute the document path.
  • Otherwise the following parameters are used: parentfolder, name.


NameDescriptionRequiredTypeDefault value
name Name of file to create - without extension (required if filename not specified in document config) maybe string
description Description of new document no string
docid Document ID no string
labels Comma separated list of document labels no string
notification-content Content of notification no string
notification-groups Comma-separated list of group names to notify (optional, default to current group name) no string
notification-labels Comma separated list of labels for the note (if exists creates a note) no string
notification-subject Subject of notification (default to document title or "Document Created") no string
notify Notification behavior no notification silent
notify-async Whether to send emails asynchronously (for slow email servers). no boolean false
parentfolder Path of parent folder relative to the default group folder no string /
template.* "template.[name]" used as a param by the template to create the content no defined in template
title Display title of new document no string
type Type of new document (optional, default is "default") no string


Undocumented permissions requirements.


The XML output follows this format:

<document-creation renamed="true"
   <uri id="138614"
     <displaytitle>New document</displaytitle>

Error Handling

CodeCause / Description
0x0000The name is required.
0x120AInvalid Document ID
0x1201Illegal character in filename
0x1209Existing Document ID
0x1211Existing URI
0x1216Invalid destination
0x1217Two contradictory parameters have been specified (url and name or url and parenturl or url and parentfolder or parenturl and parentfolder)
0x201BUnable to create XRefs
0x0204The Member was not found.
0x6202Invalid PSML document config.

Created on , last edited on