JoeLugo
4 years agoQrew Member
Restful API / Update record
I am attempting to update a record. The guide groups Insert/update in the same example. Updating a record requires the field key. Yet, when I'm including the value to update the record, the error message states I don't have permission to ADD records. See below:
field 19 has the key number and field 656 is the column being updated. Am I missing something?
------------------------------
Joe Lugo
------------------------------
field 19 has the key number and field 656 is the column being updated. Am I missing something?
var headers = {
'QB-Realm-Hostname': 'shumasports.quickbase.com',
'User-Agent': 'joeinatlanta',
'Authorization': 'QB-USER-TOKEN byud27_kxv6_dx6c7ygcyti5cizy2spyp22vy',
'Content-Type': 'application/json'
};
var body = {"to":"bnsjwj798","data":[{"19":{"value":44981},"656":{"value":1234567890}}],"fieldsToReturn":[656]};
$.ajax({
url: 'https://api.quickbase.com/v1/records',
method: 'POST',
headers: headers,
data: JSON.stringify(body),
success: function(result) {
console.log(JSON.stringify(result));
}
})
------------------------------
Joe Lugo
------------------------------