Documentation
- Getting Started
- Authentication
- Making Requests
- Resource Creation
- Searching
- Plugins
- Webhooks
Tutorials
APIs
- Activity Codes
- Archive
- Authorization
- Bank Accounts
- Contacts
- Events
- Expenses
- Fees
- Files
- Firm
- Firm Users
- Folders
- Invoices
- Layout Designs
- Layout Matter Items
- Matter Billing Configuration
- Matter Items
- Matter Types
- Matters
- Memos
- Notifications
- Plugins
- Referral Types
- Relationships
- Roles
- Staff
- Stages
- Subscription Payments
- Subscription Promotions
- Subscriptions
- Tasks
- Users
- Webhooks
Webhooks
Update a webhook subscription
Updates a webhook subscription with the specified subscription details.
PUT
/
webhooks
/
{id}
curl --request PUT \
--url https://api.smokeball.com/webhooks/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--header 'x-api-key: <api-key>' \
--data '{
"key": "da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262",
"name": "Listen to matter and contact changes",
"eventTypes": [
"matter.updated",
"contact.created"
],
"eventNotificationUrl": "http://yourdomain.com/notify"
}'
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"accountId": "da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262",
"name": "Listen to matter and contact changes",
"eventTypes": [
"matter.updated",
"contact.created"
],
"eventNotificationUrl": "http://yourdomain.com/notify",
"createdDateUtc": "2022-04-23T14:00:00Z",
"updatedDateUtc": "2022-04-23T14:00:00Z",
"lastUpdated": 637847425252027400
}
Path Parameters
Body
Response
200
application/json
When request is successful. Returns updated webhook subscriptions.
The response is of type object
.
curl --request PUT \
--url https://api.smokeball.com/webhooks/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--header 'x-api-key: <api-key>' \
--data '{
"key": "da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262",
"name": "Listen to matter and contact changes",
"eventTypes": [
"matter.updated",
"contact.created"
],
"eventNotificationUrl": "http://yourdomain.com/notify"
}'
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"accountId": "da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262",
"name": "Listen to matter and contact changes",
"eventTypes": [
"matter.updated",
"contact.created"
],
"eventNotificationUrl": "http://yourdomain.com/notify",
"createdDateUtc": "2022-04-23T14:00:00Z",
"updatedDateUtc": "2022-04-23T14:00:00Z",
"lastUpdated": 637847425252027400
}