Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create and Update should use the following schema.:

Note

Aron to verify that this simpler, single namespace attribute works for create and update, and to replace with more full declaration if it does not

Code Block
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ns2:collectionobjects-common xmlns:ns2="http://services.collectionspace.org/collectionobject">
    <entryNumber>EV2010<objectNumber>2010.5.2</entryNumber>
18</objectNumber>
    <objectName>Laguna Tide Pool</objectName>
   <depositor>Alfred L.<title>Impressionist Kroeber<Painting</depositor>title>
    ...
</ns2:collectionobjects-common>

Read will return the above, plus additional fields (uri and csid) for accessfollowing schema:

Code Block
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ns2:collectionobjects_common xmlns:ns2="http://collectionspace.org/services/collectionobject" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://collectionspace.org/services/collectionobject http://services.collectionspace.org/collectionobject/collectionobjects_common.xsd">
    <objectNumber>2010.5..18</objectNumber>
    <uri>/collectionobjects/f0cf4c50-8f8a-4df0-869a</uri>
  <csid>f0cf4c50-8f8a-4df0-869a</csid><objectName>Laguna Tide Pool</objectName>
    <title>Impressionist Painting</title>
    ...
</ns2:collectionobjects-common>
Note

The schemas above are severely abbreviated, and are thus illustrative. For a full list of the fields that may potentially be present in payloads when creating, updating, or reading individual CollectionObject records, please see the CollectionObject record schema for release 0.5.

Note

More complete examples of these schemas will be added here in the near future.

CollectionObject list schema

List (and variants) will return the following schema. This schema includes the additional fields uri and csid to help facilitate access to individual records:

Code Block
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ns2:collectionobjects-common-list xmlns:ns2="http://collectionspace.org/services/collectionobject">
  <collectionobject-list-item>
    <entryNumber>EV2010<objectNumber>2010.5.2<18</entryNumber>objectNumber>
    <title>Painting of <depositor>Alfreda L.Tide Kroeber<Pool</depositor>title>
    <uri>/collectionobjects/b59d0c6ff0cf4c50-08f28f8a-4fb54df0-b5f7<869a</uri>
    <csid>b59d0c6f<csid>f0cf4c50-08f28f8a-4fb54df0-b5f7<869a</csid>
  </collectionobject-list-item>
  ....
</ns2:collectionobjects-common-list>