Skip to main content
PATCH
Update an automation

Authorizations

Authorization
string
header
required

A Motion API key. Access is limited to its stored organization, workspace, scopes and the creator’s current permissions.

Scopes

motion:automations:write

Create, edit, delete, invoke, and retry automations.

Headers

Motion-API-Version
enum<string>
default:2026-11-19

Optional API version override for this request. When omitted, Motion uses the API version pinned to your API key or OAuth connection.

Available options:
2026-11-19

Path Parameters

automation_id
string
required

ID returned by list or create.

Required string length: 1 - 200

Body

application/json

Fields to update on an automation. Nested objects replace their saved values.

name
string
Required string length: 1 - 160
prompt
string

Self-contained instructions used for every future invocation.

Required string length: 1 - 20000
trigger
object

Trigger configuration for a schedule or channel event.

memory
object
connector_policy
object

Controls which connected services an automation may read during a run.

max_concurrent_runs
integer
default:1
Required range: 1 <= x <= 10
max_runs_per_hour
integer
default:4
Required range: 1 <= x <= 100
execution
object

Execution effort settings for automation runs.

enabled
boolean

False pauses future scheduling; true resumes it. Does not cancel an already running invocation.

Response

Success

automation
object
required

An automation definition and its configuration.