REST Resource: projects.registrations.topicSubscriptions

Resource: TopicSubscription

Represents a subscription of a single app instance to a single FCM topic.

JSON representation
{
  "name": string,
  "topic_name": string,
  "create_time": string
}
Fields
name

string

Identifier. The resource name of the subscription. Format: projects/{project}/registrations/{registration}/topicSubscriptions/{topicSubscription} The {registration} part contains the registration ID (e.g., FID).

topic_name

string

Output only. The ID of the TopicSubscription, which is the topic name. This corresponds to the {topicSubscription} segment in the resource name. Topic names match the pattern of "[a-zA-Z0-9-_.~%]{1,900}".

create_time

string (Timestamp format)

Output only. Time when the subscription was created.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

Methods

create

Creates a TopicSubscription.

delete

Deletes a TopicSubscription.

get

Gets a TopicSubscription.

list

Lists TopicSubscriptions for a given app instance.

patch

Updates a TopicSubscription.