Update a subscription

PUT /subscriptions/{id}

Update the configuration of an existing subscription.

Path parameters

  • id string(uuid) Required

    Subscription ID (UUID)

application/json

Body Required

  • target_url string(uri)
  • secret string | null
  • event_types string | null

Responses

  • 204

    Subscription updated successfully

  • 400 application/json

    The request was malformed or invalid.

    Hide response attribute Show response attribute object
    • error string
  • 404 application/json

    The requested resource was not found.

    Hide response attribute Show response attribute object
    • error string
  • 500 application/json

    An unexpected error occurred on the server.

    Hide response attribute Show response attribute object
    • error string
PUT /subscriptions/{id}
curl \
 --request PUT 'http://localhost:8080/subscriptions/{id}' \
 --header "Content-Type: application/json" \
 --data '{"target_url":"https://example.com","secret":"string","event_types":"string"}'
Request examples
{
  "target_url": "https://example.com",
  "secret": "string",
  "event_types": "string"
}
Response examples (400)
{
  "error": "string"
}
Response examples (404)
{
  "error": "string"
}
Response examples (500)
{
  "error": "string"
}