External: Users

Put Personal Record

Changed on

Sets the user's birth date, gender and sex.

Replaces the whole record: a field left out of the body is set to null. Open Wearables uses the birth date for the user's age, for example in the body summary and for the maximum heart rate behind the intensity minutes of the activity summary.

put/api/v1/users/{user_id}/personal-record

Request

  • Base URL: https://api.openwearables.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.openwearables.io/api/v1/users/{user_id}/personal-record
  • Auth: OAuth 2 (password, token URL /api/v1/auth/login)

Path parameters

user_idstring uuid required

Headers

X-Open-Wearables-API-Keystring nullable

Request body

birth_datestring date nullable

Birth date of the user

gender'female' | 'male' | 'nonbinary' | 'other' nullable

Optional self-reported gender

sex'female' | 'male' nullable

Biological sex, for norms that differ between women and men

Response

Successful Response

birth_datestring date nullable

Birth date of the user

gender'female' | 'male' | 'nonbinary' | 'other' nullable

Optional self-reported gender

user_idstring uuid required
sex'female' | 'male' nullable

Biological sex, for norms that differ between women and men

Changes