Skills/Tables/Update a record

Update a record

Free

Updates an existing record in a collection by its id. By default, merges only the supplied fields into the record (patch); pass replace to overwrite the entire record instead.

Cost

Free

What it accepts

Set these inside the intent when you run it.

collectionrequired

Name of the collection containing the record.

idrequired

Id of the record to update.

patchoptional

Fields to merge into the existing record.

replaceoptional

If true, replaces the entire record instead of merging fields.

What you get back

The updated record with its current field values.

Run it

Run this sub-skill directly: pin it with operation and pass its inputs in the intent. (Omit operation and the Tables skill will route from your intent instead.)

curl -X POST "https://skill.askfaro.com/skills/tables/run" \
  -H "Authorization: Bearer $FARO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"intent":{"operation":"update","collection":"tasks","id":"abc123","patch":"{\"status\": \"completed\"}","replace":true}}'

Example requests

  • Update the status field of task id abc123 to completed
  • Change the price of product id xyz789 to 14.99
  • Replace the entire record for contact id 456 with new data