REST Resource: projects.subscribers.subscriptions

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

create

Creates a subscription for a specific user to a specific subscriber.

delete

Deletes a specific user subscription, stopping notifications for this user to this subscriber.

list

Lists all active subscriptions for a given subscriber.

patch

Updates the data types for an existing user subscription.