I could not find a way to use iNaturalist’s API to change the license of photos that are part of an observation. I have tried to send a PUT request to https://api.inaturalist.org/v1/observations/123456789
with a request body like this:
{
"observation": {
"observation_photos": [
{
"id": 987654321,
"photo": {"license_code": "cc-by"}
}
]
}
}
(Where 123456789
is the ID of an existing observation, and 987654321
is the ID of an existing photo that is part of the observation)
However, this does not change the photo’s license. It seems to delete the photo instead. How do I use iNaturalist’s API to change the license of an existing photo?