Update existing webhook
PATCHhttps://partner-api-staging.solvhealth.com/v1/partner/webhook
Updates a webhook to add more events to listen to.
Accepts the following events: BOOKING_CREATED BOOKING_RESCHEDULED BOOKING_CANCELLED PAPERWORK_UPDATED PAPERWORK_COMPLETED.
Request​
- application/json
Body
required
events undefined[]required
Responses​
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
active Active (boolean)required
events
object
required
{
"active": true,
"events": {
"subscribed": [
"string"
],
"unsubscribed": [
"string"
]
}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
detail
object[]
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PATCH 'https://partner-api-staging.solvhealth.com/v1/partner/webhook' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"events": [
null
]
}'
ResponseClear