Introduced into R2.1, the MediaItem API supports the ability to set and update metadata name/value pairs on items that exist within your account using the updateMediaItemFields. The parameters required are:
username)password)guid)contentProviderId-mediaItemId.
An example: 234820-3928391. Ask support@yospace.com for your Content Provider ID. inputConfigurationId)-1.mediaItemFields)fieldNamevalueAn example request:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:updateMediaItemFields
xmlns:ns2="http://www.yospace.com/tundra/MediaItemManagement/">
<username>petshow</username>
<password>Wf</password>
<guid>2134712-2131019</guid>
<inputConfigurationId>-1</inputConfigurationId>
<mediaItemFields>
<fieldName>title</fieldName>
<value>My new title</value>
</mediaItemFields>
<mediaItemFields>
<fieldName>keywords</fieldName>
<value>My new keywords</value>
</mediaItemFields>
</ns2:updateMediaItemFields>
</soap:Body>
</soap:Envelope>
Possible status code (with descriptions) are as follows:
The response will contain a status of each field that was set along with its status code. The status codes that can be associated with a field are:
An example response:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:updateMediaItemFieldsResponse
xmlns:ns2="http://www.yospace.com/tundra/MediaItemManagement/">
<statusCode>200</statusCode>
<statusDescription>OK</statusDescription>
<mediaItemFields>
<fieldName>title</fieldName>
<statusCode>608</statusCode>
<statusDescription>FIELD_VALUE_SET_OK</statusDescription>
</mediaItemFields>
<mediaItemFields>
<fieldName>keywords</fieldName>
<statusCode>605</statusCode>
<statusDescription>NO_SUCH_FIELD_DEFINITION</statusDescription>
</mediaItemFields>
</ns2:updateMediaItemFieldsResponse>
</soap:Body>
</soap:Envelope>