Data Update API¶
Used to update data into Data Table.
Method | PUT |
Endpoint | https://{{host}}/api/public/tables/{{tableName}}
|
Content Type | application/json
|
Authorization | auth: {{JWT}}
|
App Access | Read and Write access to the Data Table from the Data Definition in DaaS.
For more information, see app assignment for accessing the data in a table and Data as a Service articles. |
Path Parameters¶
PARAMETER | DESCRIPTION |
host | Environment URL, for example, https://bots.kore.ai
|
tableName | Name of the table to update data |
Sample Request¶
curl -X PUT \
https://{{host}}/api/public/tables/{{tableName}} \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
-H 'content-type: application/json' \
-d '{
"query":{
"expressions": [
{"field": "firstName", "operand": "=", "value": "Jane"},
{"field": "lastName", "operand": "=", "value": "Doe"}
],
"operator": "and"
},
"data": {
"First_Name": "Jane",
"Last_Name": "Smith",
"Number": 3453
}
}'
Body Parameters¶
PARAMETER | DESCRIPTION |
query | Filter criteria identifying the row to be updated
|
data | Object with the column_name: value pairing for the columns to be updated
|