Jul 31, 2020 03:10 AM
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.
Solved! Go to Solution.
Aug 05, 2020 06:07 AM
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!
Aug 05, 2020 06:07 AM
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!
Aug 05, 2020 06:23 AM
Thanks for your reply! That would be convenient but I was expecting this answer