ObservationPhotos
Create observation photos
Use multipart/form-data to upload a new photo to an existing observation and application/json to create a connetion between an existing observation and an existing photo. Both accept a client-specified UUID and have upsert behavior to prevent creating duplicate ObservationPhoto records if requests succeed but fail to receive a response under poor network conditions.
post/observation_photos
Request
- Base URLhttps://api.inaturalist.org/v2
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
A list of observation photos
Example response
{
"results": [
{
"photo": {
"flags": [
{
"user": {
"site": {
"id": 1,
"icon_url": "https://static.inaturalist.org/sites/1-logo_square.png",
"locale": "en",
"name": "iNaturalist",
"site_name_short": "iNat",
"url": "https://www.inaturalist.org"
}
}
}
],
"moderator_actions": [
{
"user": {
"site": {
"id": 1,
"icon_url": "https://static.inaturalist.org/sites/1-logo_square.png",
"locale": "en",
"name": "iNaturalist",
"site_name_short": "iNat",
"url": "https://www.inaturalist.org"
}
}
}
]
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.