# Update a webhook **POST /o/wh/1/webhook** Updates an existing webhook entry. Important Note: if `provideAccount`, `expandTransactions`, or `expandPayments` are excluded from the update request, they will be reset to their default values. ## Servers - Demo URL: https://api.trial.lsk.lightspeed.app (Demo URL) - Production URL: https://api.lsk.lightspeed.app (Production URL) ## Authentication methods - O auth2 ## Parameters ## Body parameters Content-type: application/json - **endpointId** (string) The unique endpoint ID, for example the integration name. Case sensitive. - **url** (string) The URL which this endpoint points to. - **withBasicAuth** (boolean) If basic auth should be used, defaults to false. - **username** (string) The username for basic auth. - **password** (string) The password for basic auth. - **provideAccount** (boolean) Whether or not to include account info in the notification. - **expandTransactions** (boolean) Whether or not to include transaction lines in the notification. - **expandPayments** (boolean) Whether or not to include payment lines in the notification. - **subscribeTo** (array[object]) ## Responses ### 200: Webhook #### Body Parameters: application/json (object) - **endpointId** (string) The unique endpoint ID, for example the integration name. Case sensitive. - **url** (string) The URL which this endpoint points to. - **withBasicAuth** (boolean) If basic auth should be used, defaults to false. - **username** (string) The username for basic auth. - **password** (string) The password for basic auth. - **provideAccount** (boolean) Whether or not to include account info in the notification. - **expandTransactions** (boolean) Whether or not to include transaction lines in the notification. - **expandPayments** (boolean) Whether or not to include payment lines in the notification. - **subscribeTo** (array[object]) ### 400: Bad Request #### Body Parameters: application/json (object) - **timestamp** (string(date-time)) The date and time at which the error occurred. - **status** (integer) The HTTP status code of the error response. - **error** (string) A brief title of the error status. - **message** (string) A message describing the nature of the error in detail. - **errors** (array[object]) An array of error details, outlining specific issues with the request. - **path** (string) The path of the failed request. [Powered by Bump.sh](https://bump.sh)