Skip to main content
PUT
/
webhooks
/
{webhookId}
Update webhook settings
curl --request PUT \
  --url https://api.lettermint.co/v1/webhooks/{webhookId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "url": "<string>",
  "events": [
    "message.created"
  ],
  "enabled": true
}'
{
  "data": {
    "id": "<string>",
    "route_id": "<string>",
    "name": "<string>",
    "url": "<string>",
    "events": [
      "<string>"
    ],
    "enabled": true,
    "secret": "<string>",
    "last_called_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "message": "Webhook updated successfully."
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

webhookId
string
required

Body

application/json

UpdateWebhookData

name
string
Maximum length: 255
url
string<uri>
Maximum length: 500
events
enum<string>[]
Minimum length: 1
enabled
boolean

Response

data
object
required
message
enum<string>
required
Available options:
Webhook updated successfully.