Update a webhook endpoint

POST /r/wh/1/webhook

Update a webhook endpoint

application/json

Body Required

  • endpointId string Required

    The unique endpoint ID for example you can use your company name

  • password string

    he password for basic auth

  • url string Required

    The endpoint URL

  • username string

    The username for basic auth

  • If basic auth should be used, defaults to false

Responses

POST /r/wh/1/webhook
curl \
 -X POST https://api.trial.lsk.lightspeed.app/r/wh/1/webhook \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"endpointId":"string","password":"string","url":"string","username":"string","withBasicAuth":true}'
Request examples
{
  "endpointId": "string",
  "password": "string",
  "url": "string",
  "username": "string",
  "withBasicAuth": true
}
Response examples (200)
{
  "endpointId": "string",
  "password": "string",
  "url": "string",
  "username": "string",
  "withBasicAuth": true
}
Response examples (400)
{"status"=>"400", "timestamp"=>"2024-05-04T09:42:00+00:00", "message"=>"string", "apiSubExceptions"=>[{"field"=>"string", "rejectedValue"=>"string", "message"=>"string"}]}
Response examples (403)
{"status"=>"403", "timestamp"=>"2024-05-04T09:42:00+00:00", "message"=>"string", "apiSubExceptions"=>[{"field"=>"string", "rejectedValue"=>"string", "message"=>"string"}]}