How to increment number field via the API

Hi, is there a way to increment a number field via the API ?

Something like:
base(‘Variants’).update([
{
id:id,
fields:[
my_number_field: increment(1)
]
}
])

I would like use the API to perfom an update without pulling the previous value first.

Hi @Paul_Bouisset!

Great question – this type of update isn’t currently supported by the API. You will need to get the existing field value, increment, and then pass the new value in your API update call.

Sorry this isn’t the answer you were looking for, but I hope it helps!

Thanks for your reply! That would be convenient but I was expecting this answer

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.