---
title: "POST /v2/{+parent}/supportEventSubscriptions"
method: POST
path: "/v2/{+parent}/supportEventSubscriptions"
tags: ["supportEventSubscriptions"]
---

# POST /v2/{+parent}/supportEventSubscriptions

`POST /v2/{+parent}/supportEventSubscriptions`

Creates a support event subscription for an organization. EXAMPLES: cURL: ```shell parent="organizations/123456789" curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --header 'Content-Type: application/json' \ --data '{ "pub_sub_topic": "projects/my-project/topics/my-topic" }' \ "https://cloudsupport.googleapis.com/v2/$parent/supportEventSubscriptions" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.supportEventSubscriptions().create( parent="organizations/123456789", body={ "pub_sub_topic": "projects/my-project/topics/my-topic" }, ) print(request.execute()) ```

## Path parameters

- `parent` string, required

## Request body

- SupportEventSubscription — A support event subscription.
  - `state` 'STATE_UNSPECIFIED' | 'WORKING' | 'FAILING' | 'DELETED' — Output only. The state of the subscription.
  - `deleteTime` string, google-datetime — Output only. The time at which the subscription was deleted.
  - `purgeTime` string, google-datetime — Output only. The time at which the subscription will be purged.
  - `failureReason` 'FAILURE_REASON_UNSPECIFIED' | 'PERMISSION_DENIED' | 'TOPIC_NOT_FOUND' | 'OTHER' — Output only. Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value.
  - `name` string — Identifier. The resource name of the support event subscription.
  - `updateTime` string, google-datetime — Output only. The time at which the subscription was last updated.
  - `createTime` string, google-datetime — Output only. The time at which the subscription was created.
  - `pubSubTopic` string — Required. The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/cloudsupport.md) · [All operations](https://skmtc.dev/google/apis/cloudsupport/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/cloudsupport/revisions/a86345007852/schema)
