Community articleEditing photo or video properties
Added by IBM contributorIBM on March 27, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Provides details on how to modify the properties associated with a photo or video

Update the Atom document representation of the metadata for a file from your library.

This method replaces the content of the elements in the Atom document with the values you specify in the Atom document you provide as input. You may retrieve the property definitions associated with the photo or video's CMIS object type by using the information associated with Retrieving CMIS Object Type properties.

You can use the following header.

Method URI Description
POST /files/{authType}/cmis/repository/{repositoryId}/object/{objectId} Updates the Atom document containing the metadata of a photo or video from your library.
You can determine the URI in either of the following ways:
Value of the href attribute of the element in the file's Document Atom entries.
Construct the URI using the following syntax: {filesServiceUrl}/files/form/cmis/repository/{repositoryId}/object/{objectId}
Note: Atom elements take precedence over HTTP parameters.
Content Type: application/atom+xml
Name Type Optional Description
string No Object ID. By default the Media Gallery provides and uses a "Social Photo" object type with a CMIS id of "ada30772-31fe-44bf-b8b4-dd7e4f072cd6" and a "Social Video" object type with a CMIS id of "ada30772-31fe-44bf-b8b4-dd7e4f072ad6".
string No ID of the repository containing the media content
enumerated No Authentication type
Authorized values:
  • basic
  • form
  • oauth
Name Type Optional Description
string Yes String. Use the value "PUT". Tunnels a PUT request over the HTTP POST request.
string Yes String. See Retrieving Nonce and User id for how to retrieve the nonce value.
Content Type: application/atom+xml
Add to one collection by POST of atom entry. Note: "category" elements are for tags. Create a "category" element for each tag that should be on the content
<?xml version="1.0" encoding="UTF-8"?>

<entry xmlns="">

    <title>file name</title>


    <category term="tag1" />

    <object xmlns="">

        <properties xmlns="">

            <propertyString localName="cmis:baseTypeId"




            <propertyString localName="cmis:contentStreamFileName"


                <value>file name</value>


            <propertyString localName="cmis:name"


                <value>file name</value>


            <propertyString localName="cmis:objectTypeId"


                <value>property template cmis objectType id</value>


            <propertyId localName="cmis:objectId"


                <value>document objectId