Vekta API
Events

Update an event

Changes an event. Fields you don't send stay the same. The same sport rules as on creation apply.

Responds with:

  • 404 not_found: the event 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 event was created in a workspace where you aren't a coach or admin.
  • 400 bad_request: an empty payload, a sub sport or field the sport doesn't support, or other invalid parameters or payload.
PATCH
/events/{eventId}

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

eventId*string

Id of an event, from GET /users/{userId}/events

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Properties1 <= properties
name?string
date?string

Local date (YYYY-MM-DD)

Formatdate
sport?string

Fields the new sport doesn't have are reset, unless you send them.

Value in"cycling" | "running" | "swimming" | "training" | "multisport" | "walking" | "crossCountrySkiing" | "alpineSkiing" | "rowing" | "hiking" | "hiit" | "fitnessEquipment" | "racket" | "tennis" | "golf" | "standUpPaddleboarding" | "snowboarding" | "meditation" | "kayaking" | "soccer" | "rockClimbing" | "iceSkating" | "windsurfing" | "mixedMartialArts" | "sailing" | "mountaineering" | "surfing" | "boating" | "basketball" | "eBiking" | "hockey" | "snowshoeing" | "inlineSkating" | "kitesurfing" | "mobility" | "tactical" | "hunting" | "fishing" | "jumpRope" | "boxing" | "floorClimbing" | "snorkeling" | "motorcycling" | "baseball" | "paddling" | "canoeing" | "rafting" | "rugby" | "discGolf" | "wakeboarding" | "wakesurfing" | "waterTubing" | "waterSkiing" | "waterSport" | "snowmobiling" | "dance" | "flying" | "americanFootball" | "diving" | "cricket" | "volleyball" | "wheelchairPushWalk" | "wheelchairPushRun" | "paraSport" | "hangGliding" | "skyDiving" | "jumpmaster" | "horsebackRiding" | "driving" | "motorSports" | "shooting" | "archery" | "winterSport" | "videoGaming" | "geocaching" | "lacrosse" | "poolApnea" | "teamSport" | "grinding" | "transition" | "generic"
description?string | null
time?string | null
subSport?string | null

Must be a sub sport of sport

Value in"generic" | "treadmill" | "street" | "trail" | "track" | "spin" | "indoorCycling" | "road" | "mountain" | "downhill" | "recumbent" | "cyclocross" | "handCycling" | "trackCycling" | "indoorRowing" | "elliptical" | "stairClimbing" | "lapSwimming" | "openWater" | "flexibilityTraining" | "strengthTraining" | "warmUp" | "match" | "exercise" | "challenge" | "indoorSkiing" | "cardioTraining" | "indoorWalking" | "eBikeFitness" | "bmx" | "casualWalking" | "speedWalking" | "bikeToRunTransition" | "runToBikeTransition" | "swimToBikeTransition" | "atv" | "motocross" | "backcountry" | "resort" | "rcDrone" | "wingsuit" | "whitewater" | "skateSkiing" | "yoga" | "pilates" | "indoorRunning" | "gravelCycling" | "eBikeMountain" | "commuting" | "mixedSurface" | "navigate" | "trackMe" | "map" | "singleGasDiving" | "multiGasDiving" | "gaugeDiving" | "apneaDiving" | "apneaHunting" | "virtualActivity" | "obstacle" | "breathing" | "ccrDiving" | "sailRace" | "expedition" | "ultra" | "indoorClimbing" | "bouldering" | "hiit" | "indoorGrinding" | "huntingWithDogs" | "amrap" | "emom" | "tabata" | "esport" | "triathlon" | "duathlon" | "brick" | "swimRun" | "adventureRace" | "truckerWorkout" | "pickleball" | "padel" | "indoorWheelchairWalk" | "indoorWheelchairRun" | "indoorHandCycling" | "field" | "ice" | "ultimate" | "platform" | "squash" | "badminton" | "racquetball" | "tableTennis" | "overland" | "trollingMotor" | "flyCanopy" | "flyParaglide" | "flyParamotor" | "flyPressurized" | "flyNavigate" | "flyTimer" | "flyAltimeter" | "flyWx" | "flyVfr" | "flyIfr" | "dynamicApnea" | "enduro" | "rucking" | "rally" | "poolTriathlon" | "eBikeEnduro" | "timeTrial"
distance?integer | null

In meters. Only for sports with a distance (cycling, running, swimming...)

elevationGain?integer | null

In meters. Only for sports with an elevation gain (cycling, running, hiking...)

duration?integer | null

In seconds

work?integer | null

In kJ. Only for sports with a work estimate (cycling, running, rowing...)

carbIntake?number | null

In g/h. Only for endurance sports

Value in10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 | 110 | 120

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/events/evt_01JK4W2N9XQ3F5H7B8C6D2E9GT" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "evt_01JK4W2N9XQ3F5H7B8C6D2E9GT",  "createdBy": "usr_01JGXW3KQ2B8C4D5E6F7G8H9J0",  "workspaceId": "wke_01JGXW3KQ2B8C4D5E6F7G8H9J0",  "name": "Gran Fondo",  "description": null,  "date": "2026-09-14",  "time": "09:30:00",  "sport": "cycling",  "subSport": "road",  "distance": 120000,  "elevationGain": 2400,  "duration": 18000,  "work": 3200,  "carbIntake": 60,  "activityId": null}