---
title: "Update Subscription"
method: PUT
path: "/events/subscription/{subscriptionId}"
tags: ["Notification Subscription Service"]
---

# Update Subscription

`PUT /events/subscription/{subscriptionId}`

Update existing notification
  > **Note:** This service is deprecated. Use the 
  [Notification Center Service](https://spec.dev.spot.io/#tag/Notification-Center-Service).

## Query parameters

- `accountId` string

## Parameters

- `#/paths/~1events~1subscription~1%7BsubscriptionId%7D/get/parameters/1` — unresolved $ref

## Request body

- object
  - `subscription` object, required — Element that store all the subscription config
    - `endpoint` string — The endpoint the notification will be sent to. url in case of http/https/web, email address in case of email/email-json and sns-topic-arn in case of aws-sns

## Response `200`

Update Subscription Response

- object
  - `request` object — Original request properties
    - `id` string — Unique ID associated with this request
    - `url` string — The URL that was used for the request
    - `method` string — The HTTP **METHOD** used for the request
    - `timestamp` string — When the request was received by Spot
  - `response` object — Response package that includes, status, type and any relevant data.
    - `status` object
      - `code` integer — HTTP status code assigned to this response
      - `message` string — HTTP status message for the respective status code
    - `affectedRows` integer

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
