I was trying to use the add to photo collections API and ran into an issue. The escaped URL’s seem to be handled differently for different parameters. Following is an example.
This works:
{
"action": "update",
"mp-channel": "collections",
"url": "https:\\/\\/samgrover.com\\/collections\\/122",
"add": {
"photo": [
"https://samgrover.com/uploads/2025/ea8b1af7-2f90-43e8-9e1f-4ee60dae2f72.jpg"
]
}
}
But this does not:
{
"action": "update",
"mp-channel": "collections",
"url": "https:\\/\\/samgrover.com\\/collections\\/122",
"add": {
"photo": [
"https:\\/\\/samgrover.com\\/uploads\\/2025\\/ea8b1af7-2f90-43e8-9e1f-4ee60dae2f72.jpg"
]
}
}
Expectation: Both should work.
The difference between the two is that the url
param is escaped in both but the photo
param is only escaped in the one that does not work.
Presumably this is also a bug in other APIs that pass a photo
parameter, like deleting a photo from a collection, but I haven’t tested this.
Additionally, the API seems to send a 200 OK for the case that does not work, which also seems incorrect.
Hope you can take a look. Thanks!