Skip to main content
PATCH
Update a conversion goal

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Path Parameters

id
string
required

Goal id.

Body

application/json
name
string
Required string length: 1 - 160
type
enum<string>
Available options:
pixel_fire,
webhook_hit,
manual,
tag_added,
custom_event
config
object
value_cents
integer | null
Required range: x >= 0
lookback_days
integer
Required range: 1 <= x <= 180
attribution_model
enum<string>
Available options:
last_touch,
first_touch,
linear,
time_decay
enabled
boolean

Response

200 - application/json

The updated goal.

data
object

A conversion goal configured for the tenant, with its attribution settings and (for pixel_fire goals) a signed pixel URL hint. Batched all-time conversion/revenue totals are populated only on the goals list endpoint.

meta
object