- [Resource: CreateSubscriptionPayload](https://developers.google.com/health/reference/rest/v4/projects.subscribers.subscriptions#CreateSubscriptionPayload)
  - [JSON representation](https://developers.google.com/health/reference/rest/v4/projects.subscribers.subscriptions#CreateSubscriptionPayload.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/health/reference/rest/v4/projects.subscribers.subscriptions#METHODS_SUMMARY)

## Resource: CreateSubscriptionPayload

Payload for creating a subscription.

| JSON representation |
|---|
| ``` { "dataTypes": [ string ], "user": string } ``` |

| Fields ||
|---|---|
| `dataTypes[]` | `string` Optional. Data types subscribed to. |
| `user` | `string` Required. Immutable. The resource name of the user for whom this subscription is active. Format: `users/{user}` where `{user}` is the public `healthUserId` as returned by the `GetIdentity` action in the profile PAPI (see `google.devicesandservices.health.v4main.HealthProfileService.GetIdentity`). |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/health/reference/rest/v4/projects.subscribers.subscriptions/create` | Creates a subscription for a specific user to a specific subscriber. |
| ### `https://developers.google.com/health/reference/rest/v4/projects.subscribers.subscriptions/delete` | Deletes a specific user subscription, stopping notifications for this user to this subscriber. |
| ### `https://developers.google.com/health/reference/rest/v4/projects.subscribers.subscriptions/list` | Lists all active subscriptions for a given subscriber. |
| ### `https://developers.google.com/health/reference/rest/v4/projects.subscribers.subscriptions/patch` | Updates the data types for an existing user subscription. |