---
title: "Create a subscription to notifications"
method: PUT
path: "/v1/webhooks/{id}/subscriptions"
tags: ["Webhooks"]
---

# Create a subscription to notifications

`PUT /v1/webhooks/{id}/subscriptions`

## Path parameters

- `id` string, required

## Request body

- WebhooksV1AddSubscriptionRequest — AddSubscriptionRequest
  - `resourceType` string, required — Gets or Sets ResourceType
  - `ownerType` string, required — Gets or Sets OwnerType
  - `ownerId` string, required — Gets or Sets OwnerId

## Response `200`

OK

- WebhooksV1WebhookSubscription
  - `id` string, nullable
  - `createdBy` string, nullable — Gets or Sets CreatedBy
  - `created` string, date-time, nullable — Gets or Sets Created
  - `updatedBy` string, nullable — Gets or Sets UpdatedBy
  - `updated` string, date-time, nullable — Gets or Sets Updated
  - `deletedBy` string, nullable — Gets or Sets DeletedBy
  - `deleted` string, date-time, nullable — Gets or Sets Deleted
  - `subscriptionId` string, nullable — Gets or Sets SubscriptionId
  - `subscriberId` string, nullable — Gets or Sets SubscriberId
  - `ownerType` string, nullable — Gets or Sets OwnerType
  - `ownerId` string, nullable — Gets or Sets OwnerId
  - `resourceType` string, nullable — Gets or Sets ResourceType

## Other responses

- `201` — Created
- `default` — Error

---

[API](https://skmtc.net/domain/apis/domain-public-api.md) · [All operations](https://skmtc.net/domain/apis/domain-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/domain/domain-public-api/revisions/24ab78aba827/schema)
