Docs »

Automations »

Commands »

record.update

The record.update: command updates an existing record with the given fields.



start:
  record.update:
    output: updated_record
    inputs:
      record_type: task
      record_id: 123
      # See: https://cerb.ai/docs/records/types/task/#records-api
      fields:
        importance: 90


Syntax

inputs:

Key  
record_type: The record type to update.
record_id: The ID of the given record type to update.
fields: The fields to set based on the record type.

output:

Save the record dictionary to this placeholder.

on_simulate:

The commands to run during simulation instead of updating the record.

If omitted, the record is updated during simulation.

on_success:

The commands to run on success.

The output: placeholder is a dictionary based on the record type.

on_error:

The commands to run on failure. If omitted, the automation exits in the error state.

The output: placeholder receives a dictionary with these keys:

Key  
error The error message.