Web service API

How to use PageSeeder's Web service API

convert documenttypes to psml

/groups/{group}/documenttypes/converttopsml [POST]

com.pageseeder.developer.ConvertToPSMLConfigs

Description

Convert document types to PSML.

Warning!

This service is not part of the public API. It is used to convert legacy configurations of PageSeeder and may be removed in future version of PageSeeder

Converts PS Standard config files for each document type to the following PSML config files:

  • psml/[type]/document-config.xml
  • psml/[type]/document-template.psml
  • psml/[type]/editor-config.json

Parameters

No parameters required.

Permission

Undocumented permissions requirements.

Response

The XML returned is:

<config-conversion>
   <document-configs>
      <document type="[type]" />
      <document type="[type2]" />
       ...
   </document-configs>
   <document-templates>
      <document type="[type]" />
      <document type="[type2]" />
       ...
   </document-templates>
   <editor-configs>
      <document type="[type]" />
      <document type="[type2]" />
       ...
   <editor-configs>
   <!-- Files and subfolders -->
</config-conversion>

Error handling

CodeCause / Description
0x6203 Unable to generate PSML config file

Created on , last edited on