Skip to content

Update a referral-link

PUT
/referral-links/{id}
id
required
string

DocumentId

object
data
object
code
required
string
reward_type
string
Allowed values: credit discount trial_extension
reward_value
number
reward_currency
string
uses_count
integer
max_uses
integer
active
boolean
expires_at
string format: date-time
creator_org
One of:

DocumentId reference to api::organisation.organisation

string

Updated

object
data
object
code
required
string
reward_type
string
Allowed values: credit discount trial_extension
reward_value
number
reward_currency
string
uses_count
integer
max_uses
integer
active
boolean
expires_at
string format: date-time
creator_org
One of:

DocumentId reference to api::organisation.organisation

string
documentId
string
id
integer
createdAt
string format: date-time
updatedAt
string format: date-time
publishedAt
string format: date-time
nullable

Validation error

Missing or invalid authentication

Not authorized (tenant scope or capability)

Not found