Update automation

PUT /api/v3/automations/{id}

Request conventions

API key or OAuth2 access token. See Authentication.

Use your account domain and token in copied requests. Request values and conditional fields must satisfy your account’s validation rules.

URL settings

The part before .aha.io. Leave blank to use the example domain.

ID of the automation

Request fields

Send only the fields you want to change inside a JSON record object. This applies to both PUT and PATCH.

Only writable fields for this endpoint are listed. Required flags reflect the endpoint schema; record and workspace validation also applies.

FieldTypeResponse field

Name of the record.

stringname

Trigger kind of the automation.

stringtrigger_kind

The field that will cause the automation to trigger for field_changed automations.

stringtrigger_field

ID of the custom field definition id associated with the automation if trigger_field is custom_field.

stringcustom_field_definition

Values that will be used to compare against the trigger field to determine if the automation should trigger.

arrayvalues

The operation to use to determine if the automation should trigger.

stringchange_type

Additional field information when using the record_links trigger_field.

stringlink_filter_type

The worksheet row of a worksheet custom field if applicable.

stringfield_worksheet_row

Whether the automation is enabled.

booleanenabled

A list of additional conditions that must be met for the automation to trigger.

arraytrigger_conditions

Response fields

Choose which fields to include in the response. Expand a field for examples and associated fields. Collections can only be returned on the top-level resource, not inside an associated resource.

Default response fields are returned until you select specific fields.

FieldTypeReturned by default

Unique record ID.

integerYes

Name of the record.

stringYes

Trigger kind of the automation.

stringNo

What record type the automation is for.

stringNo

The field that will cause the automation to trigger for field_changed automations.

stringNo

Custom field definition ID associated with the automation if trigger_field is custom_field.

CustomFieldDefinitionNo

Custom table ID associated with the automation if trigger_record_type is custom_table.

CustomObjectDefinitionNo

Values that will be used to compare against the trigger field to determine if the automation should trigger.

arrayNo

The operation to use to determine if the automation should trigger.

stringNo

Additional field information when using the record_links trigger_field.

stringNo

The worksheet row of a worksheet custom field if applicable.

stringNo

Whether the automation is enabled.

booleanNo

Run count of the automation.

integerNo

Date and time when the record was created.

date-timeNo

Date and time when the record was last updated.

date-timeNo

Workspace on which the automation runs.

AutomationTargetNo

A list of additional conditions that must be met for the automation to trigger. Omitted by default. Request the field for inline records with default sub-fields, or choose sub-fields (e.g., ?fields=trigger_conditions[default]). Capped at 25 records. Only available on the top-level resource.

CollectionNo

Logs associated with the automation. Omitted by default. Request the field for inline records with default sub-fields, or choose sub-fields (e.g., ?fields=logs[default]). Capped at 25 records. Only available on the top-level resource.

CollectionNo

Search matches the start of a field path and includes matching associations’ subfields. Use a dotted path to search within a specific association.

Response field selection

Create and update responses also include fields submitted in the record body. Submitted association IDs return their associated response fields.

Return selected fields with a comma-separated fields parameter, or add a field to the defaults with fields=default,{field}. Expand an association above for its supported subfields and selection examples.

See field selection for details.

Response statuses

Error shape for 400, 401, 403, 404, 409

Type: object

error

Type: object

Required properties: status, code, message, request_id.

status

Type: integer

code

Type: string

message

Type: string

request_id

Type: string

Error shape for 422

Type: object

error

Type: object

Required properties: status, code, message, details, request_id.

status

Type: integer

Allowed values: 422

code

Type: string

Allowed values: "record.validation_failed", "record.cannot_delete"

message

Type: string

details

Type: array

Array item shape

Type: object

field

Type: string

message

Type: string

code

Type: string

request_id

Type: string

Response envelope and pagination

record: a single record. Fields are documented above.

Download the complete OpenAPI specification