Skip to content

Update a subscription

Request

Updates the data of an existing subscription

Security
ApiKeyAuth
Path
idstringrequired

Subscription ID

Bodyapplication/jsonrequired
callbackUrlstring, [ 0 .. 255 ] characters
secretstring, [ 0 .. 255 ] characters
statusstring
Enum:"PENDING""ACTIVE""INACTIVE""FAILED"
PUT
/subscription/{id}
curl -i -X PUT \
  'https://developers.prana.software/webhooks/openwebhooks/subscription/{id}' \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE' \
  -d '{
    "callbackUrl": "string",
    "secret": "string",
    "status": "PENDING"
  }'

Responses

Subscription updated successfully