Vekta API
Training prescriptions

Delete a training prescription

Deletes the prescription and removes the workout from the user's devices.

deviceSyncs tells you whether it was removed from each one.

Responds with:

  • 404 not_found: the prescription doesn't exist, or isn't yours or one of your athletes'.
  • 403 subscription_required: that user doesn't have an active Vekta subscription.
  • 403 forbidden: the prescription was created in a workspace where you aren't a coach or admin.
  • 400 bad_request: invalid parameters or payload.
DELETE
/training-prescriptions/{trainingPrescriptionId}

Authorization

AuthorizationBearer <token>

Your Vekta API key, sent as Authorization: Bearer vk_..., or an OAuth access token of an app you connected, sent as Authorization: Bearer <access token>.

In: header

Path Parameters

trainingPrescriptionId*string

Id of a training prescription, from GET /users/{userId}/training-prescriptions

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/training-prescriptions/tpr_01JK4W2N9XQ3F5H7B8C6D2E9GT"
{  "deviceSyncs": [    {      "provider": "garmin",      "action": "created",      "succeeded": true,      "message": "Pushed to the device."    }  ]}