Skip to main content
PUT
Update offer

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

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.

visible_type
integer
ask_approval_questions
enum<integer>
Available options:
0,
1
questions
string
categories
string
categories_ids
integer[]
tags
integer[]
traffic_types
integer[]
traffic_types_denied
integer[]
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