POST
Apply a marketing campaign to an event

Authorizations

better-auth.session_token
string
cookie
required

Better Auth session cookie.

Path Parameters

eventId
string<uuid>
required

Body

application/json
marketingCampaignId
string
required
Minimum string length: 1
label
string | null
Maximum string length: 200
source
string | null
Maximum string length: 200
medium
string | null
Maximum string length: 200
campaign
string | null
Maximum string length: 200
term
string | null
Maximum string length: 200
content
string | null
Maximum string length: 200
referral
string | null
Maximum string length: 200

Response

Applied link

id
string
required
organizationId
string
required
eventId
string
required
marketingCampaignId
string
required
campaignName
string
required
label
string | null
required
source
string | null
required
medium
string | null
required
campaign
string | null
required
term
string | null
required
content
string | null
required
referral
string | null
required
url
string | null
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required