Path parameters

  • webhook_id string Required
application/json

Body

  • url string
  • events array[string]
  • active boolean

Responses

  • 200 application/json

    Webhook updated

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • data object
  • 400 application/json

    Bad request

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 404 application/json

    Webhook not found

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
PATCH /webhooks/{webhook_id}
curl \
 --request PATCH 'http://localhost:7001/webhooks/{webhook_id}' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"url":"string","events":["string"],"active":true}'
Request examples
{
  "url": "string",
  "events": [
    "string"
  ],
  "active": true
}
Response examples (200)
{
  "status": true,
  "code": 200,
  "message": "Success",
  "data": {}
}
Response examples (400)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}
Response examples (401)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}
Response examples (404)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}
Response examples (500)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}