Events

Edit a race or goal

A patch that moves the date or changes the sport faces the same bounds as adding one: inside the horizon, and not into a window already dense with that sport. The rolling and total limits are not re-checked — moving a race is not adding one.

patch/events/{id}

Request

  • Base URL: https://bodylab.lol/api/v1
  • URL: https://bodylab.lol/api/v1/events/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

Opaque identifier.

Headers

X-Client-Platformstring

The native client's platform, e.g. ios. Server-side and non-native callers omit it.

X-Client-Versionstring

The native client's own semver version. With X-Client-Platform, a version below that platform's minimum is refused with CLIENT_UPGRADE_REQUIRED (426).

Request body

namestring
eventDatestring date

A day on the athlete's own calendar: YYYY-MM-DD, no time zone.

sportstring

Sport, from the engine's vocabulary (packages/engine/src/sports.ts), e.g. road_biking, running, hiking, strength_training. Known values: road_biking, running, hiking, strength_training, other. Treat unknown values as "other".

priority'A' | 'B' | 'C'
distanceMnumber nullable
durationSinteger nullable
notesstring

Response

No content.

Changes

No recorded changes to this operation across all 1 revision of this API.