Skip to main content
POST
Create custom param

Authorizations

X-API-Key
string
header
required

Preferred authentication method. Pass the API key in the X-API-Key HTTP request header. The user account must have api_status enabled.

Path Parameters

offer_id
integer
required

Offer ID.

Body

application/json
status
integer
required

1=active, 3=inactive.

start_date
string
required

Start date (YYYY-MM-DD format).

parameters
object[]
required

The overrides applied when the rule matches — one entry per action.

end_date
string

End date (YYYY-MM-DD format). Optional — omit it or send an empty string for an open-ended rule; the response then reports end_date as "".

affiliates
string

Comma-separated affiliate IDs the rule is limited to (an array of ids is also accepted). Leave empty to apply the rule to every affiliate of the offer.

conditions
object[]

Targeting conditions, AND-ed together. Send an empty array to apply the rule to all traffic of the selected affiliates.

Response

Custom param created.

status
string
Example:

"success"

code
integer
Example:

201

name
string
Example:

"Created"

message
string
info
object