Webhook Update Subscription - TrainingPeaks/PartnersAPI GitHub Wiki

Update Subscription

Update a Webhook subscription

  • Resource endpoint: v1/webhook/subscriptions/{subscription-id}
  • HTTP Method: PUT
  • OAuth Scope Required: webhook:write-subscriptions

Request

Endpoints

Testing:
https://api.sandbox.trainingpeaks.com/v1/webhook/subscriptions/{subscription-id}

Production:
https://api.trainingpeaks.com/v1/webhook/subscriptions/{subscription-id}

Request Body

{
    "EventType": "workout-created",
    "WebhookUrl": "https://api.mycompany.com/callback2",
    "Active": true
}
Property Type Description
EventType string See below for valid types
WebhookUrl string The URL which will receive a POST upon an event matching the EventType occurring
Active bool Webhook calls will only be made when this is true

Valid EventTypes:

workout-created
workout-updated
workout-deleted

Response

The response will be a single JSON object:

{
    "Id": "0d76e887-8e8a-46f4-bb2b-2f66e4fc40ee",
    "AthleteId": 54321,
    "EventType": "workout-created",
    "WebhookUrl": "https://api.mycompany.com/callback2",
    "Active": true,
    "CreatedBy": 54321,
    "CreatedOn": "2025-07-24T21:03:05.1324848Z"
}