---
title: "Update subscription"
method: POST
path: "/subscriptions/{id}"
tags: ["webhooks"]
---

# Update subscription

`POST /subscriptions/{id}`

Update subscription properties, such as `callback_uri` and `status`.

## Path parameters

- `id` string, required

## Request body

- SubscriptionUpdate
  - `events` string[]
  - `secret` string — When your `secret` token is set, a hash signature is created with each payload. This hash signature is included with the headers of each request as `x-ec-signature-256`. The intention is to calculate a hash of the payload received using your `secret` token, and check that the hash matches the one from EarthCache.
  - `callback_uri` string, uri
  - `status` 'active' | 'inactive'
  - `callback_headers` object

## Response `204`

Success - subscription updated; no content returned

## Other responses

- `404` — Not found - target subscription does not exist
- `4XX` — Client-side error - invalid request

---

[API](https://skmtc.net/skywatch/apis/api-specification.md) · [All operations](https://skmtc.net/skywatch/apis/api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/skywatch/api-specification/revisions/51f7c5a8d15d/schema)
