Skip to main content
PUT
/
webhooks
/
{webhook_id}
Update a webhook by ID
curl --request PUT \
  --url http://localhost:3001/portal-api/webhooks/{webhook_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "Name": "<string>",
  "URL": "<string>",
  "Method": "<string>",
  "Timeout": 123,
  "Events": [
    "AccessRequestApproved"
  ]
}
'
{
  "ID": "<string>",
  "Name": "<string>",
  "URL": "<string>",
  "Method": "<string>",
  "Timeout": 123,
  "Headers": [
    {
      "ID": "<string>",
      "Name": "<string>",
      "Value": "<string>"
    }
  ],
  "Events": [
    "AccessRequestApproved"
  ],
  "CreatedAt": "2023-06-25 13:37",
  "UpdatedAt": "2023-06-25 13:37"
}

Documentation Index

Fetch the complete documentation index at: https://tyk.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

webhook_id
string
required

Body

application/json

Webhook object that needs to be updated

Name
string

Name of the webhook

URL
string

URL to which the webhook will send requests

Method
string

HTTP method used by the webhook (e.g., GET, POST)

Timeout
integer

Timeout in seconds for the webhook request

Events
enum<string>[]

List of event types that trigger the webhook

Available options:
AccessRequestApproved,
AccessRequestRejected,
AccessRequestCreated,
OrganisationRequestCreated,
UserRegistered,
OrganisationRequestApproved,
OrganisationRequestRejected,
PasswordReset,
RegisterInvite,
UserAccountActivated,
UserAccountDeactivated,
ApplicationRegistered,
CredentialRegistered,
OrganisationRegistered

Response

Webhook updated successfully.

ID
string

Unique identifier for the webhook

Name
string

Name of the webhook

URL
string

URL to which the webhook will send requests

Method
string

HTTP method used by the webhook (e.g., GET, POST)

Timeout
integer

Timeout in seconds for the webhook request

Headers
object[]

List of custom headers included in the webhook request

Events
enum<string>[]

List of event types that trigger the webhook

Available options:
AccessRequestApproved,
AccessRequestRejected,
AccessRequestCreated,
OrganisationRequestCreated,
UserRegistered,
OrganisationRequestApproved,
OrganisationRequestRejected,
PasswordReset,
RegisterInvite,
UserAccountActivated,
UserAccountDeactivated,
ApplicationRegistered,
CredentialRegistered,
OrganisationRegistered
CreatedAt
string

Timestamp of when this webhook was created

Pattern: ^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$
Example:

"2023-06-25 13:37"

UpdatedAt
string

Timestamp of when this webhook was updated the last time

Pattern: ^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$
Example:

"2023-06-25 13:37"