Skip to main content

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


Something like:

base(‘Variants’).update(a

{

id:id,

fields:l

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!


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


Reply