Skip to main content
PATCH
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

PATCH /ai/automations/ One upsert against the unique (TenantId, template_id) index — there is no separate enable/disable endpoint. Setting enabled: true on a template whose workflow has not shipped yet (available: false) is refused with TEMPLATE_NOT_AVAILABLE (409). Plan gate: setting trigger.kind to anything other than manual requires the automationsTriggers entitlement (PLUS and above) — refused with FEATURE_REQUIRED (403) on FREE and STARTER. enabled and config changes (and a trigger patch that keeps kind: manual) are ungated and available on every tier. The gate is enforced both here (route middleware, conditional on the body) and again inside AutomationService.configure, since agent/tool callers reach the service without passing through this route. Authorization: any authenticated tenant member.

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

templateId
enum<string>
required
Available options:
statement-notify-artists,
royalty-file-anomaly-hold,
catalog-hygiene,
release-delivery

Body

application/json

Every field optional — send only what changed. At least one is required.

enabled
boolean
trigger
object
Example:
config
object

Response

Automation updated

status
string
Example:

"success"

message
string
data
object