Create a guardrail or automation
rules_createCreate guardrails or automations for ad accounts. Set confirm: true to execute; otherwise returns a preview without sending changes.
Instructions
Create a guardrail or automation (POST /v1/rules). WRITE: not executed unless confirm: true (this operation has no server-side dry run).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| confirm | No | Set true to execute. Without it nothing is sent and a preview of the request is returned. | |
| idempotencyKey | No | Idempotency-Key; generated when omitted |