Hit the Lightroom API from Salesforce
Hi Team,
I am currently trying to hit the Lightroom API from Salesforce to apply tags to images and videos.
I am sending the below payload to attach tags to a particular asset. However, the tags are not getting applied even though the API call is going through.
Please find the method I am using:
public static void applyXmpTags(String assetId, List keywords) {
if (String.isBlank(assetId) || keywords == null || keywords.isEmpty()) return;
String now = getAdobeTimestamp();
String bodyJson = JSON.serialize(new Map<String,Object>{
'userUpdated' => now,
'xmp' => new Map<String,Object>{ 'dc' => keywords }
});
}
Payload being sent:
{
"userUpdated": "",
"xmp": {
"dc": ["tag1", "tag2"]
}
}
If anyone has faced a similar issue or has any suggestions on how to get the tags applied successfully, please help me with the solution.
Thanks in advance.
