Update a Webhook
Updates a specified webhook.
Updates a specified webhook.
Code:
await seam.webhooks.update({
webhook_id: "e294905f-e7a5-4804-95a6-303f440eb262",
event_types: [
"device.connected",
"device.disconnected",
"device.unmanaged.converted_to_managed",
],
});Output:
// voidUpdates a specified webhook.
Code:
curl --include --request POST "https://connect.getseam.com/webhooks/update" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"webhook_id": "e294905f-e7a5-4804-95a6-303f440eb262",
"event_types": [
"device.connected",
"device.disconnected",
"device.unmanaged.converted_to_managed"
]
}
EOFOutput:
{}Updates a specified webhook.
Code:
seam.webhooks.update(
webhook_id="e294905f-e7a5-4804-95a6-303f440eb262",
event_types=[
"device.connected",
"device.disconnected",
"device.unmanaged.converted_to_managed",
],
)Output:
NoneUpdates a specified webhook.
Code:
seam.webhooks.update(
webhook_id: "e294905f-e7a5-4804-95a6-303f440eb262",
event_types: %w[device.connected device.disconnected device.unmanaged.converted_to_managed],
)Output:
nilUpdates a specified webhook.
Code:
$seam->webhooks->update(
webhook_id: "e294905f-e7a5-4804-95a6-303f440eb262",
event_types: [
"device.connected",
"device.disconnected",
"device.unmanaged.converted_to_managed",
]
);Output:
Updates a specified webhook.
Code:
seam webhooks update --webhook_id "e294905f-e7a5-4804-95a6-303f440eb262" --event_types ["device.connected","device.disconnected","device.unmanaged.converted_to_managed"]Output:
{}Request Parameters
event_types Array of Strings (Required)
Types of events that you want the webhook to receive.
webhook_id String (Required)
ID of the webhook that you want to update.
Response
void
Last updated
Was this helpful?

