{"_id":"5480ce6283bd5c080064289f","__v":2,"editedParams2":true,"project":"54343170fa5527080064f449","category":{"_id":"5480c8fd74904f1a00053c86","__v":5,"pages":["5480c92674904f1a00053c87","5480ccadb8caf31a00d771d6","5480ce6283bd5c080064289f","5480ceb383bd5c08006428a1","54ac0da8de18cc1400226de9"],"version":"54343531bfaa3d0800c4d4af","project":"54343170fa5527080064f449","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-12-04T20:50:05.267Z","from_sync":false,"order":9,"slug":"metadata","title":"Metadata"},"editedParams":true,"version":{"_id":"54343531bfaa3d0800c4d4af","project":"54343170fa5527080064f449","__v":27,"forked_from":"54343170fa5527080064f44c","createdAt":"2014-10-07T18:47:13.086Z","releaseDate":"2014-10-07T18:47:13.086Z","categories":["54343531bfaa3d0800c4d4b0","543435b1edce040800409240","543435b9edce040800409241","543435bcedce040800409243","543435bfedce040800409244","543435c2edce040800409245","54370cc426469424002a6dfa","54370cf026469424002a6dfd","5437129d26469424002a6e2f","543712d226469424002a6e30","5480c8fd74904f1a00053c86","54aafc6eefb39016009e4d71","54ac1d36de18cc1400226e01","54ad59369219922100751732","54b41bcf4f25cb1600518d2c","54b533a3a806f40c0050d53c","54b54bbf96fe3c0b00d38d2a","54b688a27379a90c00f53a8a","54b699efbc1a46160005edfa","54b8191691011f0b00068804","54bfb002d03bfc0d0000e814","54bfb33ed03bfc0d0000e816","55a3e94e912a6e2300882cdb","55a56c370f354f0d00fd02a8","55e85ad034516037002e9325","5638ecb62fc5520d001a4cf9","572cba2fc310640e008f63d5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0"},"parentDoc":null,"user":"54343147fa5527080064f43f","updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-12-04T21:13:06.199Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"basic_auth":false,"method":"put","results":{"codes":[{"language":"json","status":204,"name":"Success","code":"// Successful request\n{}"},{"code":"No records found that match your query.","language":"json","status":404,"name":""}]},"settings":"","try":false,"auth":"required","params":[{"_id":"5480ca8c76ed952000b74ba2","ref":"","in":"path","required":true,"desc":"Asset ID","default":"","type":"string","name":"assetid"},{"_id":"5570bd6ccc189a21001ab4b0","ref":"","in":"body","required":true,"desc":"Array of key/value pairs. See example payload.","default":"","type":"array_mixed","name":"metadataArray"}],"url":"/assets/:assetid/metadata"},"isReference":false,"order":3,"body":"[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"// Example payload\\n[\\n  {\\t\\n\\t\\t\\\"key\\\"\\t\\t: \\\"Timecode\\\",\\n  \\t\\\"value\\\" : \\\"06:48:22:29\\\"\\n\\t},\\n  {\\t\\n\\t\\t\\\"key\\\"\\t\\t: \\\"FileType\\\",\\n  \\t\\\"value\\\" : \\\"PNG\\\"\\n\\t}x`\\n]\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"PUT replaces all metadata\",\n  \"body\": \"Using put first removes all existing metadata fields before adding the newly submitted key value pairs.\"\n}\n[/block]","excerpt":"Completely replaces metadata with submitted key/value pairs.","slug":"update","type":"endpoint","title":"Replace Metadata"}

putReplace Metadata

Completely replaces metadata with submitted key/value pairs.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

assetid:
required
string
Asset ID

Body Params

metadataArray:
required
array of mixed
Array of key/value pairs. See example payload.

Result Format


Documentation

[block:code] { "codes": [ { "code": "// Example payload\n[\n {\t\n\t\t\"key\"\t\t: \"Timecode\",\n \t\"value\" : \"06:48:22:29\"\n\t},\n {\t\n\t\t\"key\"\t\t: \"FileType\",\n \t\"value\" : \"PNG\"\n\t}x`\n]", "language": "json" } ] } [/block] [block:callout] { "type": "danger", "title": "PUT replaces all metadata", "body": "Using put first removes all existing metadata fields before adding the newly submitted key value pairs." } [/block]

User Information

Try It Out

put
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}