PUT
/
environments
/
{environmentId}
/
webhooks
/
{webhookId}
Authorization
Path
Body
curl --request PUT \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/webhooks/{webhookId} \
  --header 'Content-Type: application/json' \
  --data '{
  "events": [
    "<string>"
  ],
  "isEnabled": true,
  "url": "https://website-sample.com"
}'
{
  "createdAt": "2023-11-07T05:31:56Z",
  "enabledAt": "2023-11-07T05:31:56Z",
  "environmentId": "95b11417-f18f-457f-8804-68e361f9164f",
  "events": [
    "<string>"
  ],
  "isEnabled": true,
  "secret": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z",
  "url": "https://website-sample.com",
  "webhookId": "95b11417-f18f-457f-8804-68e361f9164f"
}

Path Parameters

environmentId
string
required

ID of the environment

webhookId
string
required

UUID of the webhook

Body

application/json
events
string[]
required
isEnabled
boolean
required
url
string
required

Response

200 - application/json
createdAt
string
required
enabledAt
string
environmentId
string
required
events
string[]
required
isEnabled
boolean
required
secret
string
updatedAt
string
required
url
string
required
webhookId
string
required