Skip to main content

Create or Update a Tracker

WHR Tracker Upsert API — v1.1 (1.1.0)

Download OpenAPI specification:Download

Create or Update a Tracker

Creates a tracker, or updates one when id (tracker uuid) is sent. On update only the fields sent are changed. Hidden trackers (published: 0) can be updated too, e.g. to publish them again. A tracker name must be unique per account and entity type (case-insensitive, unpublished trackers included).

Authorizations:
(UsernameHeaderPasswordHeader)
Request Body schema: application/x-www-form-urlencoded
required
id
string

Tracker uuid of the tracker to update (one of the account's trackers, hidden ones included). Leave out to create a tracker.

name
string <= 200 characters

Required on create. Can't be empty. Unique per account and entity type (case-insensitive).

description
string <= 1000 characters

Optional. On update, an empty value clears it.

entity.type
string
Enum: "event" "company"

Required on create. Can't be changed; on update it must match the tracker.

published
integer
Enum: 0 1

Update only. 0 hides the tracker (it no longer appears or is monitored); 1 brings it back.

data
string

Optional. Events / companies to add to or update in the tracker: JSON array, max 1000 items. Each item - uuid (event / company uuid, matching the tracker's entity type) and / or website (needed when there is no uuid), and published (1 = track, the default; 0 = stop tracking). Company trackers: a website with no internal company gets one created (see "Websites not on internal database").

Responses

Response Schema: application/json
required
object
id
required
string

Tracker uuid. Send it as id to update the tracker or to the other tracker APIs.

action
required
string
Enum: "created" "updated"
object

Only when data was sent - what happened to its items.

object

Only when data was sent and the account has tracker tokens - for the tracker's entity type, the tokens this request used (events / companies new to the account) and those left.

Request samples

Content type
application/x-www-form-urlencoded
Example
name=Packaging%20shows%202027&description=Shows%20we%20want%20to%20exhibit%20at&entity.type=event

Response samples

Content type
application/json
Example
{
  • "data": {
    • "id": "3c678c5c76ebb0b53bab7333d33cfa61",
    • "action": "created"
    }
}