---
title: "Updates user subscription based on chosen settings"
url: "https://earlyaccess.developers.bynder.com/apis/webhooks-api/versions/876c7972-129f-4814-b12a-964ddc49f2b6/operations/updateSubscriptionRoute"
---

> Full API specification: https://earlyaccess.developers.bynder.com/apis/webhooks-api/versions/876c7972-129f-4814-b12a-964ddc49f2b6.md

# Updates user subscription based on chosen settings

`PUT` `/webhooks/api/subscriptions`

Operation ID: `updateSubscriptionRoute`

Updates subscription

## Request body

Content types: `application/json`

## Responses

- `200` - Successfully updated subscription
- `400` - Failed to update subscription

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: webhooks-api
  version: 1.0.0
servers:
  - description: Local Development
    url: http://0.0.0.0:8081
paths:
  /webhooks/api/subscriptions:
    put:
      description: Updates subscription
      operationId: updateSubscriptionRoute
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateSubscriptionRequest"
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UpdateSubscriptionResponse"
          description: Successfully updated subscription
        "400":
          description: Failed to update subscription
      summary: Updates user subscription based on chosen settings
security: []
components:
  schemas:
    UpdateSubscriptionRequest:
      properties:
        config_id:
          type: string
        events:
          items:
            type: string
          type: array
      required:
        - config_id
        - events
      type: object
    UpdateSubscriptionResponse:
      properties:
        message:
          type: string
        record:
          $ref: "#/components/schemas/UpdateSubscriptionEventsRecord"
        success:
          type: boolean
      required:
        - message
        - success
      type: object
    UpdateSubscriptionEventsRecord:
      properties:
        configId:
          type: string
        events:
          items:
            type: string
          type: array
        portalId:
          type: string
      required:
        - configId
        - events
        - portalId
      type: object
```
