Skip to main content
PATCH
Update or pause an automation

Authorizations

Authorization
string
header
required

Motion API key (motion_ prefix), authenticated as its owner. Account and engine permissions still apply.

Path Parameters

automation_id
string
required

ID returned by list or create.

Required string length: 1 - 200
Pattern: ^[a-zA-Z0-9_-]+$

Body

application/json

Supply at least one editable field. Nested objects replace their saved value; include all required nested fields. outputKind is creation-only. Execution changes can return 409 update_conflict; reread before retrying.

name
string
Required string length: 1 - 160
prompt
string

Self-contained instructions used for every future invocation.

Required string length: 1 - 20000
trigger
object

Match platform to trigger type. Discover environment availability with GET /automations/capabilities.

memory
object
connectorPolicy
object

Uses existing connected accounts and permissions; this request cannot connect an account or grant access.

maxConcurrentRuns
integer
default:1
Required range: 1 <= x <= 10
maxRunsPerHour
integer
default:4
Required range: 1 <= x <= 100
execution
object

Supply engine or effort. Engine changes use the new engine default when effort is omitted.

enabled
boolean

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

Response

Success

automation
object
required

Owner-scoped read view. Read responses can include additional saved context and history. Use the dedicated run-history endpoint for pagination. Read fields are not accepted as write inputs.