Javascript API setMetadata

Heya,


Anyone know what paramaters to pass to the setMetadata function of the Javascript API, and what format to pass them as?



Thank you!



Grant

Any of the functions for the Javascript API can be seen by just viewing an API asset to see what to pass to that function.


For the setMetadata function, you could do the following:


    
    var asset_id = '123';
    var meta_id = '444';
    var meta_value = 'This is my new meta value';
    setMetadata(asset_id, meta_id, meta_value);


You can pass those all as strings and it won't matter. Have you given it a try just to test it out?

Ah of course! Thanks Nic.


Haven't tried it yet, but will very shortly.



I'll make sure the manual gets updated as well to reflect this.



Cheers

The is also an article on this topic here: http://www.squizlabs.com/mysource-matrix/set-multi-metadata-js-api