---
updatedAt: 2026-10-20T10:43:13.000Z
agentTools:
  projectIndex: https://harbor-developers.owlpay.com/llms.txt
---

# Update a notification subscription

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "OwlPay Harbor API",
    "description": "OwlPay Harbor API Documentation",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://harbor-sandbox.owlpay.com"
    }
  ],
  "tags": [
    {
      "name": "Webhook subscriptions",
      "description": "APIs for managing webhook subscriptions."
    }
  ],
  "components": {
    "securitySchemes": {
      "default": {
        "type": "apiKey",
        "name": "X-API-KEY",
        "in": "header",
        "description": "Please contact your customer service team to obtain your <b> API Key </b>."
      }
    }
  },
  "security": [
    {
      "default": []
    }
  ],
  "paths": {
    "/api/v1/notifications/subscriptions/{webhookSubscription_uuid}": {
      "put": {
        "summary": "Update a notification subscription",
        "operationId": "updateANotificationSubscription",
        "description": "",
        "parameters": [
          {
            "in": "header",
            "name": "X-API-KEY",
            "description": "",
            "example": "{YOUR_API_KEY}",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Update a notification subscription",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "data": {
                      "uuid": "sub_951ca83b-1330-4b7b-921a-a1c02f1345b5",
                      "name": "Transactions Webhook",
                      "endpoint": "https://example.com/webhook",
                      "enabled": true,
                      "notification_types": [
                        "*"
                      ],
                      "restricted": false,
                      "created_at": "2025-08-28T08:37:21.000000Z",
                      "updated_at": "2025-08-28T08:37:21.000000Z"
                    }
                  },
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "uuid": {
                          "type": "string",
                          "example": "sub_951ca83b-1330-4b7b-921a-a1c02f1345b5",
                          "description": "The unique identifier of the webhook subscription."
                        },
                        "name": {
                          "type": "string",
                          "example": "Transactions Webhook",
                          "description": "The name of the webhook subscription."
                        },
                        "endpoint": {
                          "type": "string",
                          "example": "https://example.com/webhook",
                          "description": "The URL endpoint where webhook events will be delivered."
                        },
                        "enabled": {
                          "type": "boolean",
                          "example": true,
                          "description": "Whether the webhook subscription is active."
                        },
                        "notification_types": {
                          "type": "array",
                          "example": [
                            "*"
                          ],
                          "description": "The list of event types to subscribe to. Use [\"*\"] for all events.",
                          "items": {
                            "type": "string"
                          }
                        },
                        "restricted": {
                          "type": "boolean",
                          "example": false,
                          "description": "Administrative flag. When true, no webhooks are delivered to this subscription regardless of its notification types. Only OwlPay operations can change it."
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2025-08-28T08:37:21.000000Z",
                          "description": "ISO 8601 timestamp of when the subscription was created."
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2025-08-28T08:37:21.000000Z",
                          "description": "ISO 8601 timestamp of when the subscription was last updated."
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Webhook subscriptions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Whether the subscription is enabled. true indicates the subscription is active.",
                    "example": true
                  },
                  "name": {
                    "type": "string",
                    "description": "Name of the subscription. Must not be greater than 255 characters.",
                    "example": "webhook"
                  }
                },
                "required": [
                  "enabled",
                  "name"
                ]
              }
            }
          }
        }
      },
      "parameters": [
        {
          "in": "path",
          "name": "webhookSubscription_uuid",
          "description": "The universally unique identifier of the resource.",
          "example": "sub_951ca83b-1330-4b7b-921a-a1c02f1345b5",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    }
  }
}
```