Edit database record
Update one database record with optimistic concurrency protection. First read get_database_rows and check editing support. Send the exact original snapshot, plus SQL values (strings or null) or a MongoDB/Qdrant document. A conflict returns 409; re-read and ask before retrying changed data.
Request & response examples
curl --fail-with-body --request POST \ 'https://app.helicarrier.xyz/api/services/YOUR_ID/db/record' \ -H "Authorization: Bearer $HELI_API_KEY" \ -H 'Content-Type: application/json' \ --data '{ "name": "my-service", "original": "YOUR_ORIGINAL"}'const response = await fetch( "https://app.helicarrier.xyz/api/services/YOUR_ID/db/record", { method: "POST", headers: { Authorization: `Bearer ${process.env.HELI_API_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ "name": "my-service", "original": "YOUR_ORIGINAL" }) });const data = await response.json();if (!response.ok) { throw new Error(`HTTP ${response.status}: ${data.error}`);}// Inspect data; avoid logging secret responses.import osimport requests
response = requests.request( "POST", "https://app.helicarrier.xyz/api/services/YOUR_ID/db/record", headers={ "Authorization": f"Bearer {os.environ['HELI_API_KEY']}" }, json={ "name": "my-service", "original": "YOUR_ORIGINAL" }, timeout=30,)response.raise_for_status()data = response.json()# Inspect data; avoid logging secret responses.{ "saved": true}Illustrative values · selected fields
Path parameters
id string required Service ID.
Request body
database string optional Database name.
group string optional Schema or collection group.
name string required Table or collection.
original string required Exact opaque original snapshot from get_database_rows; never fabricate it.
values object (string or null values) optional SQL field values as strings or null; strings preserve numeric precision.
document object optional Replacement document for engines using document edits.
Response 200
Update one database record with optimistic concurrency protection. First read get_database_rows and check editing support. Send the exact original snapshot, plus SQL values (strings or null) or a MongoDB/Qdrant document. A conflict returns 409; re-read and ask before retrying changed data.
Examples show selected response fields with illustrative values. Your response can contain additional fields.
saved boolean Errors
400 Invalid parameters. Check the required fields, types, and resource configuration.
401 The API key is missing, invalid, or revoked.
403 The caller or key scope does not permit this operation.
409 The current resource state prevents the operation. Inspect it before retrying.
edit_database_record
Required MCP arguments: id, name, original. Send path, query,
and body fields together as tool arguments.