# Hermoso: update_tiktok_ads_rule · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/update_tiktok_ads_rule/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / update_tiktok_ads_rule

# `update_tiktok_ads_rule`

Replace a TikTok automated rule’s definition destructive

Area: AUTOMATED RULES · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

Parameter Type Description

`advertiserId` `string` TikTok ad account id from list_tiktok_ads_accounts; omit when only one account is shared with this profile

`ruleId` required `string` from list_tiktok_ads_rules

`name` required `string` rule name; the update replaces the whole rule, so send the name again

`applyObjects` required `object[]` same shape as create_tiktok_ads_rule

`conditions` required `object[]` when the rule fires; replaces the existing conditions

`actions` required `object[]` what the rule does on a match; replaces the existing actions

`notification` required `object` notification settings object (notificationType, emailSetting); replaces the existing one

`ruleExecInfo` required `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](https://hermoso.ai/docs/credits/).

## Related tools

- [create_tiktok_ads_rule](https://hermoso.ai/docs/reference/ads/create_tiktok_ads_rule/) Create a TikTok automated rule (created turned OFF)
- [list_tiktok_ads_rules](https://hermoso.ai/docs/reference/ads/list_tiktok_ads_rules/) List TikTok automated rules, classified by whether they can spend
- [tiktok_ads_rule_results](https://hermoso.ai/docs/reference/ads/tiktok_ads_rule_results/) What TikTok’s automated rules actually did
- [set_tiktok_ads_rule_status](https://hermoso.ai/docs/reference/ads/set_tiktok_ads_rule_status/) Arm, disarm or delete a TikTok automated rule
- [bind_tiktok_ads_rule](https://hermoso.ai/docs/reference/ads/bind_tiktok_ads_rule/) Put objects under a TikTok automated rule, or take them out

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
