Skip to main content
POST
Turn a rule on or off. Turning OFF is immediate. Turning ON is two-step (preview + confirmationToken) because an active auto_run rule acts on live ads without asking; only owners/admins can activate auto_run rules.

Authorizations

Authorization
string
header
required

AdStellar API key (ast_live_...)

Body

application/json
ruleId
string<uuid>
required

Rule id from list_automation_rules.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
isActive
boolean
required

true to activate, false to pause the rule.

confirmationToken
string

Omit on the first call to get a preview + token; pass the token back to execute.

workspaceId
string<uuid>

Limit to one workspace this credential can access. Omit to span all of them.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

Tool result