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:
Request Body schema: application/x-www-form-urlencodedrequired
| 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. |
| data | string Optional. Events / companies to add to or update in the tracker: JSON array, max 1000 items. Each item - |
Responses
Response Schema: application/json
required | object | ||||||||
| |||||||||
Request samples
- Payload
- cURL
- Python
- JavaScript
- PHP
name=Packaging%20shows%202027&description=Shows%20we%20want%20to%20exhibit%20at&entity.type=event
Response samples
- 200
- 400
- 403
- 404
- 405
- 409
- 429
- 500
- 502
{- "data": {
- "id": "3c678c5c76ebb0b53bab7333d33cfa61",
- "action": "created"
}
}