Skip to Content
TrackCrest Docs

Update offer

Change an offer's name, URLs, payout, revenue, status or dates. Fields left out stay as they are.

PATCH
/api/v1/network/offers/{publicId}

Requires scope offers:write.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key: pk_company_… (network), pk_aff_… (affiliate) or pk_adv_… (advertiser). X-Api-Key works too.

Path Parameters

publicId*integer
Formatint32

Request Body

application/json
  1. body
advertiserId?|
Formatint32
name?string|null
landingUrl?string|null
payoutModel?string|null
payout?|
Formatdouble
revenue?|
Formatdouble
currency?string|null
status?string|null
description?string|null
previewUrl?string|null
categories?array<string>|null
startsAt?|
Formatdate-time
expiresAt?|
Formatdate-time
visibility?string|null
kpi?string|null
payoutPercent?|
Formatdouble
revenuePercent?|
Formatdouble

Response Body

OK

application/json
  1. response
data?
Example Request
curl -X PATCH 'https://trakcrt.com/api/v1/network/offers/0' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "publicId": 0,    "name": "string",    "status": "string",    "visibility": "string",    "advertiser": {      "publicId": 0,      "name": "string"    },    "categories": [      "string"    ],    "payoutModel": "string",    "payout": 0.1,    "payoutPercent": 0,    "revenue": 0,    "revenuePercent": 0,    "currency": "string",    "caps": {      "daily": 0,      "monthly": 0,      "global": 0    },    "targeting": {      "countries": [        "string"      ],      "devices": [        "string"      ],      "operatingSystems": [        "string"      ]    },    "landingUrl": "string",    "previewUrl": "string",    "startsAt": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z",    "planLocked": true,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "description": "string",    "kpi": "string"  }}