PUT_collections

/collections/:id:

Updates an existing collection identified by the :id: parameter.

Mandatory request fields include:

  • name

Additional fields include:

  • shortDescription
  • introductoryText
  • copyrightText
  • license
  • provenance

Endpoint URL: http://path/to/rest/collections/:id:.format

Formats: xml, json

HTTP Methods: PUT

Parameters: None

Example:

PUT http://path/to/rest/collections/1.xml

<?xml version="1.0" encoding="UTF-8"?>
<request>
	<name>An example collection</name>
	<shortDescription>Created using XML request</shortDescription>
	<introductoryText>An example collection</introductoryText>
</request>

PUT http://path/to/rest/collections/1.json

{
	"name":"An example collection",
	"shortDescription":"Created using JSON request",
	"introductoryText" : "An example collection"
}