Replace a record using its current version
curl --request PATCH \
--url https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/rows/{record_id} \
--header 'Content-Type: application/json' \
--data '
{
"values": {},
"version": 2
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({values: {}, version: 2})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/rows/{record_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/rows/{record_id}"
payload = {
"values": {},
"version": 2
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}Data workspace
Replace a record using its current version
Dedicated workspace database. Pro or Team required. Workspace-scoped credentials only; mutations require the write capability. All reads and writes resolve the database from the authenticated workspace.
PATCH
/
admin
/
api
/
data-workspace
/
tables
/
{table_id}
/
rows
/
{record_id}
Replace a record using its current version
curl --request PATCH \
--url https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/rows/{record_id} \
--header 'Content-Type: application/json' \
--data '
{
"values": {},
"version": 2
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({values: {}, version: 2})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/rows/{record_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/rows/{record_id}"
payload = {
"values": {},
"version": 2
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}