hermosodocs

update_tiktok_ads_rule

Replace a TikTok automated rule’s definition destructive

Area: AUTOMATED RULES · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
advertiserIdstringTikTok ad account id from list_tiktok_ads_accounts; omit when only one account is shared with this profile
ruleIdrequiredstringfrom list_tiktok_ads_rules
namerequiredstringrule name; the update replaces the whole rule, so send the name again
applyObjectsrequiredobject[]same shape as create_tiktok_ads_rule
conditionsrequiredobject[]when the rule fires; replaces the existing conditions
actionsrequiredobject[]what the rule does on a match; replaces the existing actions
notificationrequiredobjectnotification settings object (notificationType, emailSetting); replaces the existing one
ruleExecInforequiredobjectrun schedule object (execTimeType, execTime, timePeriodInfo); replaces the existing one
tzonestringtimezone for the rule's time windows, sent to TikTok as given
confirmbooleanrequired when the rule is live and the new version can spend
confirmScopestringrequired 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.

All 759 Ad campaign management tools · tools.json