- [Resource: TopicSubscription](https://firebase.google.com/docs/reference/fcm/fcmtopics/rest/v1/projects.registrations.topicSubscriptions#TopicSubscription)
  - [JSON representation](https://firebase.google.com/docs/reference/fcm/fcmtopics/rest/v1/projects.registrations.topicSubscriptions#TopicSubscription.SCHEMA_REPRESENTATION)
- [Methods](https://firebase.google.com/docs/reference/fcm/fcmtopics/rest/v1/projects.registrations.topicSubscriptions#METHODS_SUMMARY)

## 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 (`https://protobuf.dev/reference/protobuf/google.protobuf#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 ||
|---|---|
| ### `https://firebase.google.com/docs/reference/fcm/fcmtopics/rest/v1/projects.registrations.topicSubscriptions/create` | Creates a TopicSubscription. |
| ### `https://firebase.google.com/docs/reference/fcm/fcmtopics/rest/v1/projects.registrations.topicSubscriptions/delete` | Deletes a TopicSubscription. |
| ### `https://firebase.google.com/docs/reference/fcm/fcmtopics/rest/v1/projects.registrations.topicSubscriptions/get` | Gets a TopicSubscription. |
| ### `https://firebase.google.com/docs/reference/fcm/fcmtopics/rest/v1/projects.registrations.topicSubscriptions/list` | Lists TopicSubscriptions for a given app instance. |
| ### `https://firebase.google.com/docs/reference/fcm/fcmtopics/rest/v1/projects.registrations.topicSubscriptions/patch` | Updates a TopicSubscription. |