DavidNEGROBAR
3 years agoQrew Member
Restful API how to update multiple records?
Hi,
I'm new to QB and API. I'm trying to update a field (checkbox) in a table for multiple records using an unique Key field.
I managed to update the field for one Key field, but failed to update multiple in one request.
My script for one record looks like :
{
"to": "ID of my table",
"data": [
{
"72": {
"value": "unique Key field"
},
"60": {
"value": true =>tick the checkbox
}
}
],
"fieldsToReturn": [
3
]
}
Is there a simple way to run this action with multiple values for my FiD 72?
Thanks for your help.
------------------------------
David NEGROBAR
------------------------------
I'm new to QB and API. I'm trying to update a field (checkbox) in a table for multiple records using an unique Key field.
I managed to update the field for one Key field, but failed to update multiple in one request.
My script for one record looks like :
{
"to": "ID of my table",
"data": [
{
"72": {
"value": "unique Key field"
},
"60": {
"value": true =>tick the checkbox
}
}
],
"fieldsToReturn": [
3
]
}
Is there a simple way to run this action with multiple values for my FiD 72?
Thanks for your help.
------------------------------
David NEGROBAR
------------------------------