API - ability to create/update multiple observation field values in one call?

Our custom user interface typically updates 2-10 observation fields taking 10-15 seconds.

The API calls to POST or PUT /observation_field_values only take a single observation field.

Is there a way to update multiple observation field values in one API call? This would help improve performance of the updates, and possibly make it atomic.

1 Like

Each call to the API is taking between 1.2 and 2.5 seconds. We are making multiple calls, one to add the observation to the project and one per observation field. This causes a slow response of 10-15 seconds on our user interface.

@carrieseltzer - would it be possible to get some input from an iNaturalist developer on how to improve the performance of updating multiple observation fields?

/cc @jon_sullivan @murray_dawson

1 Like

The v2 API still only takes a single field value, so it looks like there’s currently no plans to allow updating multiple values in a single request.

This would seem to imply that making parallel requests is the only way to reduce upload time. I’m not sure how this would work out when adding multiple field values to the same observation. I suppose the easiest way to find out is to just try it and see what happens…

2 Likes