Skip to main content
PUT
/
webhook-groups
/
update
/
{webhook_group_id}
Update Webhook Group
curl --request PUT \
  --url https://api.swoogo.com/api/v1/webhook-groups/update/{webhook_group_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'name=Sample Webhook Group' \
  --data-urlencode 'headers%5B0%5D={
  "key": "Authentication",
  "value": "Bearer Token"
}' \
  --data-urlencode 'headers%5B1%5D={
  "key": "Content-Type",
  "value": "application/json"
}' \
  --data notification_emails=test@email.com
{
  "name": "Sample Webhook Group",
  "headers": [
    {
      "key": "Authentication",
      "value": "Bearer Token"
    },
    {
      "key": "Content-Type",
      "value": "application/json"
    }
  ],
  "notification_emails": [
    "notify@example.com",
    "test@example.com"
  ]
}

Authorizations

Authorization
string
header
required

OAuth 2.0 bearer token obtained from POST /oauth2/token. Tokens expire after 30 minutes. Include in the Authorization header as Bearer {access_token}.

Path Parameters

webhook_group_id
integer
required

integer - required - The ID of the Webhook Group you want to update

Example:

1

Body

application/x-www-form-urlencoded
name
string
required

The name of the webhook group. This value must be unique.

Example:

"Sample Webhook Group"

headers
object[]

A list of key-value pairs representing headers for the webhook group.

Example:
[
  {
    "key": "Authentication",
    "value": "Bearer Token"
  },
  {
    "key": "Content-Type",
    "value": "application/json"
  }
]
notification_emails
string[]

Notification email list for failure alerts.

A list of email addresses to be notified if any webhook within the group fails.

Example:
["notify@example.com", "test@example.com"]

Response

Update Webhook Group

name
string
required

The name of the webhook group. This value must be unique.

Example:

"Sample Webhook Group"

headers
object[]

A list of key-value pairs representing headers for the webhook group.

Example:
[
  {
    "key": "Authentication",
    "value": "Bearer Token"
  },
  {
    "key": "Content-Type",
    "value": "application/json"
  }
]
notification_emails
string[]

Notification email list for failure alerts.

A list of email addresses to be notified if any webhook within the group fails.

Example:
["notify@example.com", "test@example.com"]