authenticated
campaigns

Save Campaign Targeting

Persist the targeting rule builder's state as campaign-level rules.

Converts each rule group into a campaign_rule row (rule_type_key = the group's source, params = the group payload) and proxies to campaign-service's full-replacement PUT, which validates params against the engine's discriminated union.

put/campaigns/{campaign_id}/rules

Request

  • Base URL
    https://api-docs.upsmith.com (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

campaign_idstring required

Headers

organization-idstring nullable
x-user-idstring nullable
timezonestring
x-actor-emailstring nullable
x-request-sourcestring nullable
x-operation-idstring nullable
x-commit-messagestring nullable
x-confirmation-idstring nullable
x-chat-idstring nullable

Request body

rulesobject[] required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.