Tracker Webhook Upsert
WHR Tracker Webhook Upsert API — v1.1 (1.1.0)
Download OpenAPI specification:Download
Register or update the HTTPS webhook destination for a tracker.
Create or Update a Tracker Webhook
Register or update one HTTPS webhook destination per tracker. Only supplied fields change. See the Webhook Delivery guide for notification payloads, signatures and retries.
Authorizations:
(UsernameHeaderPasswordHeader)
Request Body schema: application/x-www-form-urlencodedrequired
| id required | string UUID of a published tracker owned by the account. |
| url | string <uri> Public HTTPS callback URL. Required when first enabling a webhook. |
| enabled | integer Default: 1 Enum: 0 1 1 enables delivery; 0 pauses delivery. |
| rotateSecret | integer Enum: 0 1 Set to 1 to issue a new signing secret; store it securely. |
Responses
Response Schema: application/json
required | object | ||||||||||||
| |||||||||||||
Request samples
- Payload
- cURL
Content type
application/x-www-form-urlencoded
Example
id=3c678c5c76ebb0b53bab7333d33cfa61&url=https%3A%2F%2Fclient.example.com%2Fwebhooks%2Fwhr&enabled=1
Response samples
- 200
- 400
- 403
- 404
- 429
- 500
Content type
application/json
Example
{- "data": {
- "id": "wh_7d4f1a6b",
- "trackerId": "3c678c5c76ebb0b53bab7333d33cfa61",
- "enabled": 1,
- "action": "created",
- "signingSecret": "whsec_EXAMPLE"
}
}