Skip to main content
PUT
/
management
/
v1
/
projects
/
{projectId}
/
webhooks
/
{webhookId}
Update Webhook
curl --request PUT \
  --url https://{cluster}.voucherify.io/management/v1/projects/{projectId}/webhooks/{webhookId} \
  --header 'Content-Type: application/json' \
  --header 'X-Management-Id: <api-key>' \
  --header 'X-Management-Token: <api-key>' \
  --data '{
  "target_url": "<string>",
  "events": [
    "business_validation_rule.assignment.created"
  ],
  "active": true
}'
{
  "object": "webhook",
  "created_at": "2024-04-30T08:13:55.789Z",
  "id": "wh_Fk1HzL9lqC1lpuIFxp3TShB4",
  "events": [
    "redemption.failed"
  ],
  "target_url": "your_url",
  "active": false
}

Authorizations

X-Management-Id
string
header
required
X-Management-Token
string
header
required

Path Parameters

projectId
string
required
Example:
webhookId
string
required
Example:

Body

application/json
target_url
string
required
events
enum<string>[]
required
active
boolean
default:true

Response

id
string
required
Example:
object
enum<string>
default:webhook
required
Available options:
webhook
created_at
string<date-time>
required
Example:
target_url
string
required
events
enum<string>[]
required
active
boolean
default:true
required