update_tiktok_ads_rule
Replace a TikTok automated rule’s definition destructive
Description
Replace an automated rule’s WHOLE definition. TikTok’s update is a full replace rather than a patch, so send every field the rule should keep — anything omitted is gone. IF THE RULE IS CURRENTLY RUNNING AND THE NEW VERSION CAN START OR RAISE SPEND, this arms it the moment it saves, so it takes the same confirm:true plus confirmScope echo as arming one: an edit must never be a route by which a harmless rule becomes a spending rule behind a gate it passed when it meant something else. A rule that is currently OFF needs no gate here, because arming it later runs the gate against the new definition. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
advertiserId | string | TikTok ad account id from list_tiktok_ads_accounts; omit when only one account is shared with this profile |
ruleIdrequired | string | from list_tiktok_ads_rules |
namerequired | string | rule name; the update replaces the whole rule, so send the name again |
applyObjectsrequired | object[] | same shape as create_tiktok_ads_rule |
conditionsrequired | object[] | when the rule fires; replaces the existing conditions |
actionsrequired | object[] | what the rule does on a match; replaces the existing actions |
notificationrequired | object | notification settings object (notificationType, emailSetting); replaces the existing one |
ruleExecInforequired | object | run schedule object (execTimeType, execTime, timePeriodInfo); replaces the existing one |
tzone | string | timezone for the rule's time windows, sent to TikTok as given |
confirm | boolean | required when the rule is live and the new version can spend |
confirmScope | string | required in the same case — the scope token the refusal prints, computed from the version being sent |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/update_tiktok_ads_rule.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_tiktok_ads_rule","arguments":{"ruleId":"<string>","name":"<string>","applyObjects":"<array>","conditions":"<array>","actions":"<array>","notification":"<object>","ruleExecInfo":"<object>"}}}
CLI
hermoso call update_tiktok_ads_rule --json '{"ruleId":"<string>","name":"<string>","applyObjects":"<array>","conditions":"<array>","actions":"<array>","notification":"<object>","ruleExecInfo":"<object>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
create_tiktok_ads_ruleCreate a TikTok automated rule (created turned OFF)list_tiktok_ads_rulesList TikTok automated rules, classified by whether they can spendtiktok_ads_rule_resultsWhat TikTok’s automated rules actually didset_tiktok_ads_rule_statusArm, disarm or delete a TikTok automated rulebind_tiktok_ads_rulePut objects under a TikTok automated rule, or take them out