openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 79.9 kB
JSON
{"openapi":"3.0.0","servers":[{"url":"https://fitness.googleapis.com/fitness/v1/users"}],"info":{"contact":{"name":"Google","url":"https://google.com","x-twitter":"youtube"},"description":"The Fitness API for managing users' fitness tracking data.","license":{"name":"Creative Commons Attribution 3.0","url":"http://creativecommons.org/licenses/by/3.0/"},"termsOfService":"https://developers.google.com/terms/","title":"Fitness API","version":"v1","x-apiClientRegistration":{"url":"https://console.developers.google.com"},"x-apisguru-categories":["analytics","media"],"x-logo":{"url":"https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"},"x-origin":[{"format":"google","url":"https://fitness.googleapis.com/$discovery/rest?version=v1","version":"v1"}],"x-providerName":"googleapis.com","x-serviceName":"fitness"},"externalDocs":{"url":"https://developers.google.com/fit/rest/v1/get-started"},"tags":[{"name":"users"}],"paths":{"/{userId}/dataSources":{"get":{"description":"Lists all data sources that are visible to the developer, using the OAuth scopes provided. The list is not exhaustive; the user may have private data sources that are only visible to other developers, or calls using other scopes.","operationId":"fitness.users.dataSources.list","parameters":[{"description":"List data sources for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"The names of data types to include in the list. If not specified, all data sources will be returned.","explode":true,"in":"query","name":"dataTypeName","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDataSourcesResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Creates a new data source that is unique across all data sources belonging to this user. A data source is a unique source of sensor data. Data sources can expose raw data coming from hardware sensors on local or companion devices. They can also expose derived data, created by transforming or merging other data sources. Multiple data sources can exist for the same data type. Every data point in every dataset inserted into or read from the Fitness API has an associated data source. Each data source produces a unique stream of dataset updates, with a unique data source identifier. Not all changes to data source affect the data stream ID, so that data collected by updated versions of the same application/device can still be considered to belong to the same data source. Data sources are identified using a string generated by the server, based on the contents of the source being created. The dataStreamId field should not be set when invoking this method. It will be automatically generated by the server with the correct format. If a dataStreamId is set, it must match the format that the server would generate. This format is a combination of some fields from the data source, and has a specific order. If it doesn't match, the request will fail with an error. Specifying a DataType which is not a known type (beginning with \"com.google.\") will create a DataSource with a *custom data type*. Custom data types are only readable by the application that created them. Custom data types are *deprecated*; use standard data types instead. In addition to the data source fields included in the data source ID, the developer project number that is authenticated when creating the data source is included. This developer project number is obfuscated when read by any other developer reading public data types.","operationId":"fitness.users.dataSources.create","parameters":[{"description":"Create the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSource"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSource"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]}},"/{userId}/dataSources/{dataSourceId}":{"delete":{"description":"Deletes the specified data source. The request will fail if the data source contains any data points.","operationId":"fitness.users.dataSources.delete","parameters":[{"description":"Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"The data stream ID of the data source to delete.","in":"path","name":"dataSourceId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSource"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]},"get":{"description":"Returns the specified data source.","operationId":"fitness.users.dataSources.get","parameters":[{"description":"Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"The data stream ID of the data source to retrieve.","in":"path","name":"dataSourceId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSource"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"put":{"description":"Updates the specified data source. The dataStreamId, dataType, type, dataStreamName, and device properties with the exception of version, cannot be modified. Data sources are identified by their dataStreamId.","operationId":"fitness.users.dataSources.update","parameters":[{"description":"Update the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"The data stream ID of the data source to update.","in":"path","name":"dataSourceId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSource"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSource"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]}},"/{userId}/dataSources/{dataSourceId}/dataPointChanges":{"get":{"description":"Queries for user's data point changes for a particular data source.","operationId":"fitness.users.dataSources.dataPointChanges.list","parameters":[{"description":"List data points for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"The data stream ID of the data source that created the dataset.","in":"path","name":"dataSourceId","required":true,"schema":{"type":"string"}},{"description":"If specified, no more than this many data point changes will be included in the response.","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.","in":"query","name":"pageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDataPointChangesResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}]},"/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}":{"delete":{"description":"Performs an inclusive delete of all data points whose start and end times have any overlap with the time range specified by the dataset ID. For most data types, the entire data point will be deleted. For data types where the time span represents a consistent value (such as com.google.activity.segment), and a data point straddles either end point of the dataset, only the overlapping portion of the data point will be deleted.","operationId":"fitness.users.dataSources.datasets.delete","parameters":[{"description":"Delete a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"The data stream ID of the data source that created the dataset.","in":"path","name":"dataSourceId","required":true,"schema":{"type":"string"}},{"description":"Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: \"startTime-endTime\" where startTime and endTime are 64 bit integers.","in":"path","name":"datasetId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]},"get":{"description":"Returns a dataset containing all data points whose start and end times overlap with the specified range of the dataset minimum start time and maximum end time. Specifically, any data point whose start time is less than or equal to the dataset end time and whose end time is greater than or equal to the dataset start time.","operationId":"fitness.users.dataSources.datasets.get","parameters":[{"description":"Retrieve a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"The data stream ID of the data source that created the dataset.","in":"path","name":"dataSourceId","required":true,"schema":{"type":"string"}},{"description":"Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: \"startTime-endTime\" where startTime and endTime are 64 bit integers.","in":"path","name":"datasetId","required":true,"schema":{"type":"string"}},{"description":"If specified, no more than this many data points will be included in the dataset. If there are more data points in the dataset, nextPageToken will be set in the dataset response. The limit is applied from the end of the time range. That is, if pageToken is absent, the limit most recent data points will be returned.","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"The continuation token, which is used to page through large datasets. To get the next page of a dataset, set this parameter to the value of nextPageToken from the previous response. Each subsequent call will yield a partial dataset with data point end timestamps that are strictly smaller than those in the previous partial response.","in":"query","name":"pageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"patch":{"description":"Adds data points to a dataset. The dataset need not be previously created. All points within the given dataset will be returned with subsquent calls to retrieve this dataset. Data points can belong to more than one dataset. This method does not use patch semantics: the data points provided are merely inserted, with no existing data replaced.","operationId":"fitness.users.dataSources.datasets.patch","parameters":[{"description":"Patch a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"The data stream ID of the data source that created the dataset.","in":"path","name":"dataSourceId","required":true,"schema":{"type":"string"}},{"description":"This field is not used, and can be safely omitted.","in":"path","name":"datasetId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dataset"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]}},"/{userId}/dataset:aggregate":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Aggregates data of a certain type or stream into buckets divided by a given type of boundary. Multiple data sets of multiple types and from multiple sources can be aggregated into exactly one bucket type per request.","operationId":"fitness.users.dataset.aggregate","parameters":[{"description":"Aggregate data for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregateRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregateResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]}},"/{userId}/sessions":{"get":{"description":"Lists sessions previously created.","operationId":"fitness.users.sessions.list","parameters":[{"description":"List sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"If non-empty, only sessions with these activity types should be returned.","explode":true,"in":"query","name":"activityType","schema":{"items":{"type":"integer"},"type":"array"},"style":"form"},{"description":"An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but startTime is specified, all sessions from startTime to the end of time will be returned.","in":"query","name":"endTime","schema":{"type":"string"}},{"description":"If true, and if both startTime and endTime are omitted, session deletions will be returned.","in":"query","name":"includeDeleted","schema":{"type":"boolean"}},{"description":"The continuation token, which is used for incremental syncing. To get the next batch of changes, set this parameter to the value of nextPageToken from the previous response. The page token is ignored if either start or end time is specified. If none of start time, end time, and the page token is specified, sessions modified in the last 30 days are returned.","in":"query","name":"pageToken","schema":{"type":"string"}},{"description":"An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but endTime is specified, all sessions from the start of time up to endTime will be returned.","in":"query","name":"startTime","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSessionsResponse"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_glucose.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_glucose.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.blood_pressure.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.blood_pressure.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.body_temperature.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.body_temperature.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.heart_rate.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.heart_rate.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.location.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.location.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.nutrition.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.nutrition.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.oxygen_saturation.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.reproductive_health.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.reproductive_health.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.read"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.read"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}]},"/{userId}/sessions/{sessionId}":{"delete":{"description":"Deletes a session specified by the given session ID.","operationId":"fitness.users.sessions.delete","parameters":[{"description":"Delete a session for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"The ID of the session to be deleted.","in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"put":{"description":"Updates or insert a given session.","operationId":"fitness.users.sessions.update","parameters":[{"description":"Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"The ID of the session to be created.","in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}},"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/fitness.activity.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.activity.write"]},{"Oauth2":["https://www.googleapis.com/auth/fitness.sleep.write"],"Oauth2c":["https://www.googleapis.com/auth/fitness.sleep.write"]}],"tags":["users"]}}},"components":{"parameters":{"_.xgafv":{"description":"V1 error format.","in":"query","name":"$.xgafv","schema":{"enum":["1","2"],"type":"string"}},"access_token":{"description":"OAuth access token.","in":"query","name":"access_token","schema":{"type":"string"}},"alt":{"description":"Data format for response.","in":"query","name":"alt","schema":{"enum":["json","media","proto"],"type":"string"}},"callback":{"description":"JSONP","in":"query","name":"callback","schema":{"type":"string"}},"fields":{"description":"Selector specifying which fields to include in a partial response.","in":"query","name":"fields","schema":{"type":"string"}},"key":{"description":"API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.","in":"query","name":"key","schema":{"type":"string"}},"oauth_token":{"description":"OAuth 2.0 token for the current user.","in":"query","name":"oauth_token","schema":{"type":"string"}},"prettyPrint":{"description":"Returns response with indentations and line breaks.","in":"query","name":"prettyPrint","schema":{"type":"boolean"}},"quotaUser":{"description":"Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.","in":"query","name":"quotaUser","schema":{"type":"string"}},"uploadType":{"description":"Legacy upload protocol for media (e.g. \"media\", \"multipart\").","in":"query","name":"uploadType","schema":{"type":"string"}},"upload_protocol":{"description":"Upload protocol for media (e.g. \"raw\", \"multipart\").","in":"query","name":"upload_protocol","schema":{"type":"string"}}},"schemas":{"AggregateBucket":{"properties":{"activity":{"description":"Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT","format":"int32","type":"integer"},"dataset":{"description":"There will be one dataset per AggregateBy in the request.","items":{"$ref":"#/components/schemas/Dataset"},"type":"array"},"endTimeMillis":{"description":"The end time for the aggregated data, in milliseconds since epoch, inclus