Skip to main content
PUT
Update offer

Authorizations

X-API-Key
string
header
required

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

Path Parameters

id
integer
required

Offer ID.

Body

application/json
title
string
Maximum string length: 128
status
integer

Offer status to set: 1=active, 2=testing, 3=inactive, 6=draft. 5=deleted is additionally accepted on update, but it is not a status change: it performs the same write as DELETE /api/v2/network/offers/{id} and is one-way — the offer then returns 404 on GET, PUT and DELETE, and its urls, creatives and custom params become unreachable. Create Offer rejects 5 outright.

advertiser_id
integer
currency
string
Maximum string length: 3
external_id
string
description
string
internal_info
string
timezone
string

Timezone identifier used to determine whether expiration_date is in the past.

image
string
image_data
string
Available options:
0,
1
is_expires
enum<integer>
Available options:
0,
1
expiration_date
string

Expiration date in Y-m-d format. When is_expires=1, must be today or a future date in the offer timezone. The offer stops accepting traffic (clicks, impressions, conversions, smart links, promo codes, leads) at 00:00 of the following day in the offer timezone and is treated as Inactive from then on, even before its status is switched to Inactive. Events (registrations, deposits and other /track/event calls) for clicks made before that are still accepted, as they are for any Inactive offer.

visible_type
integer
ask_approval_questions
enum<integer>
Available options:
0,
1
questions
string
categories_ids

Category IDs. Replaces the current list; [] clears it, omitting the key keeps it.

Required range: x >= 1
tags
integer[]
traffic_types_ids
integer[]

Allowed traffic source IDs. Replaces the current list; [] clears it, omitting the key keeps it. Inactive traffic sources are skipped.

Required range: x >= 1
traffic_types_denied_ids
integer[]

Denied traffic source IDs. Replaces the current list; [] clears it, omitting the key keeps it. Inactive traffic sources are skipped.

Required range: x >= 1
block_traffic
enum<integer>
Available options:
0,
1
block_traffic_vpn
enum<integer>
Available options:
0,
1
block_traffic_proxy
enum<integer>
Available options:
0,
1
block_traffic_bot
enum<integer>
Available options:
0,
1

Response

Offer updated.

status
string
Example:

"success"

code
integer
Example:

200

name
string
Example:

"OK"

message
string
info
object