From NSDLWiki

Jump to: navigation, search




Modify an existing Resource object (see ObjectTypes) in the NDR.

Request URL[handle]
where [handle] is an NDR handle for an existing Resource object.
Must be an HTTP POST request.


(the Resource object handle is at the end of the requestURL)
  • inputXML (required) - while inputXML is required, no specific element is required for the modifyResource request. Only data desired to be added, deleted, or replaced should be included. The inputXML may lack or contain empty <properties>, <relationships> and/or <data> elements.

    • Properties
      • the NDR currently does not allow any changes to a Resource object's identifier property.

    • Relationships
      • [command] (strongly recommended, but optional) - best practice is to use only explicit "add" or "delete". The "replace" command will only succeed if the Resource object has less than two existing memberOf relationships. See below.
        • memberOf (optional) - the handle of any Aggregator objects of which this Resource is a member.

where [command] is one of:

  • add - add the contained properties, relationships or datastreams to the object.
  • delete - remove the contained properties, relationships or datastreams from the object.
  • modify (default) - if the contained properties, relationships or datastreams already exist in the object, replace them with what is contained here. If the contained properties, relationships or datastreams do NOT exist in the object, add them.

Below is example inputXML for a Resource object to be modified. Two memberOf relationships will be added between the Resource object and the indicated Aggregator objects, and one memberOf relationship will be removed.
<?xml version="1.0" encoding="UTF-8"?>
See also AddResource.

Response Fields

  • handle - the externally resolvable identifier for the Resource object.
  • handleURL - the permanent URL to an XML representation of the Resource object in the NDR.

Response Example

<?xml version="1.0" encoding="UTF-8"?>

API Links:

Personal tools