[RESTful Web-service Documentation]
go top

set-user-media-metadata

set metadata to a media (publish type is stock agency only, with accepted rights)

Request Method

PUT

Parameter

App and User Authentication

Endpoint

http://rest.panthermedia.net/set-user-media-metadata

Content-Type

text/xml or application/json

Content

Parameter/Attribute (*=required)
Possible values
Default value
Description
id_media *
[string]
Sample "2345"


lang
[string] single value
en
en
language
title *
[string]
Sample "Skyscraper"


keywords *
[string]
Sample "skyscraper, high building, new york, city, big apple"

keywords as comma seperated
description
[string]
Sample "skyscraper in new york city, big apple"


editorial
[string] single value
  • yes
  • no
no

required for editorial media
mr
[string]
Sample "26471, 7038"


model releases id's as comma seperated
pr
[string]


property releases id's as comma seperated

Sample Request XML

PUT http://rest.panthermedia.net/set-user-media-metadata?api_key=a5e770dadd779347e0fdd4db91ad883d0592aaca031e2c81234f3cb800fdd1f&access_key=96c35a3d110cf36709968972e38fb8e9879d656f&timestamp=Thu,%2026Jul%202012%2014:53:44%20UTC&nonce=54321&algo=sha1
Accept-Version: 1.0
Content-Type: text/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<media id_media="2345">
   <title><![CDATA[Skyscraper]]></title>
   <keywords><![CDATA[skyscraper, high building, new york, city, big apple]]></keywords>
   <description><![CDATA[skyscraper in new york city, big apple]]></description>
</media>

Sample Request JSON

PUT http://rest.panthermedia.net/set-user-media-metadata?api_key=a5e770dadd779347e0fdd4db91ad883d0592aaca031e2c81234f3cb800fdd1f&access_key=96c35a3d110cf36709968972e38fb8e9879d656f&timestamp=Thu,%2026Jul%202012%2014:53:44%20UTC&nonce=54321&algo=sha1&content_type=application/json
Accept-Version: 1.0
Content-Type: application/json

{
"id_media": "2345",
"title": "Skyscraper",
"keywords": "skyscraper, high building, new york, city, big apple",
"description": "skyscraper in new york city, big apple"
}


Sample Answer XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rsp stat="ok">
    <token>c0c0b98897b5f72b965990b50adec67264a6f07b9134173e9ac60e6b73fe0474</token>
</rsp>

Sample Answer JSON

{
"stat": "ok",
"token": "c0c0b98897b5f72b965990b50adec67264a6f07b9134173e9ac60e6b73fe0474"
}