users

PATCH /v4/users/{usersId}/profile

Updates the user's profile details.

Request

  • Base URL
    https://health.googleapis.com
  • URL
    https://health.googleapis.com/v4/users/{usersId}/profile
  • Auth
    OAuth 2 and OAuth 2
    Implicit: https://accounts.google.com/o/oauth2/auth
    Scopes: https://www.googleapis.com/auth/googlehealth.profile.writeonly
    Authorization code: https://accounts.google.com/o/oauth2/auth
    Token URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/googlehealth.profile.writeonly

Path parameters

usersIdstring required

Query parameters

updateMaskstring google-fieldmask

Optional. The list of fields to be updated.

Request body

ageinteger

Optional. The age in years based on the user's birth date. Updates to this field are currently not supported.

autoRunningStrideLengthMminteger

Output only. The automatically calculated running stride length, in millimeters. The user must consent to the following access scope to access this field: - https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly

autoWalkingStrideLengthMminteger

Output only. The automatically calculated walking stride length, in millimeters. The user must consent to the following access scope to access this field: - https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly

namestring

Identifier. The resource name of this Profile resource. Format: users/{user}/profile Example: users/1234567890/profile or users/me/profile The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal me can also be used to refer to the authenticated user. This field is read-only.

userConfiguredRunningStrideLengthMminteger

Optional. The user's user configured running stride length, in millimeters. The user must consent to the following access scope to access this field: - https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly

userConfiguredWalkingStrideLengthMminteger

Optional. The user's user configured walking stride length, in millimeters. The user must consent to the following access scope to access this field: - https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly

Response

Successful response

ageinteger

Optional. The age in years based on the user's birth date. Updates to this field are currently not supported.

autoRunningStrideLengthMminteger

Output only. The automatically calculated running stride length, in millimeters. The user must consent to the following access scope to access this field: - https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly

autoWalkingStrideLengthMminteger

Output only. The automatically calculated walking stride length, in millimeters. The user must consent to the following access scope to access this field: - https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly

namestring

Identifier. The resource name of this Profile resource. Format: users/{user}/profile Example: users/1234567890/profile or users/me/profile The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal me can also be used to refer to the authenticated user. This field is read-only.

userConfiguredRunningStrideLengthMminteger

Optional. The user's user configured running stride length, in millimeters. The user must consent to the following access scope to access this field: - https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly

userConfiguredWalkingStrideLengthMminteger

Optional. The user's user configured walking stride length, in millimeters. The user must consent to the following access scope to access this field: - https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly

Changes

No recorded changes to this operation across all 6 revisions of this API.