Skip to main content

 Services

Web services from /about to /webhooks

group resources

/groups/{group}/resources [PUT]

Description

Creates or updates a project resource.

The location parameter must be the location of the resource to create relative to the web app folder. For example:

  • /WEB-INF/config/template/myproject/config/project.properties
  • /WEB-INF/config/template/myproject/psml/spec/style/document.css
  • /WEB-INF/config/template/myproject/organization/style/logo.svg

Only resources which are not part of the default template can be created or updated.

Any files under a style folder are publicly accessible without authentication.

Parameters

NameDescriptionRequiredTypeDefault
locationThe path to the project resource to update from the Web container rootyespath
contentThe actual content of the resource. DEPRECATED use enclosed entity content of the requestmaybestring
overwriteA flag to allow overwriting of existing resourcesnobooleanfalse

Permission

This service requires administrator except that project manager is allowed when the location filename is one of: document-template.psml, document-config.xml, publish-config.xml, xref-config.xml, publication-config.xml, editor-config.xml, document.css, media-template.psml, pdf-export-config.xml, word-export-config.xml, word-import-config.xml, psml-split-config.xml, project.properties, *.sch or /member/*.xml.

Response

<file name="[name]"
      path="[path]"
      type="[folder|file]"
      mediatype="[mediatype]"
      status="[forbidden|
               created|
               modified|
               not-modified]" />

The actual content of the resource must be in the enclosed entity content of the request.

Error Handling

No specific errors expected for this service.

Created on , last edited on