Update or insert a row in a data table
Needs an API key of an account (not a test key).
Input
Expects a json body
{
"table": "processed_orders",
"filters": [
{
"column": "orderId",
"condition": "eq",
"value": "A-17"
}
],
"data": {
"total": 49.9
}
}Output · HTTP 200
Response
{
"statusCode": 200
}Show curl command
curl -X POST 'https://api.1001fx.com/datatables/upsertrow' \
-H 'X-API-KEY: YOURSECRETAPIKEY' \
-H 'Content-Type: application/json' \
-d '{"table":"processed_orders","filters":[{"column":"orderId","condition":"eq","value":"A-17"}],"data":{"total":49.9}}'