---
title: "Update a Webhook"
method: PUT
path: "/v1/environment/webhooks/{webhook_id}"
tags: ["webhooks"]
---

# Update a Webhook

`PUT /v1/environment/webhooks/{webhook_id}`

Update the webhook url property

## Request body

- UpdateWebhookRequestBody — An update webhook request body
  - `url` string, url — A URL
  - `headers` WebhookHeader[] — Array of custom webhook headers
    - `key` string, required — Key/name of a header
    - `value` string, required — Value of a header

## Response `204`

The request was successful.

- string

## Other responses

- `400` — The request contained errors.
- `404` — The specified resource does not exist.
- `500` — An error occurred on ShipEngine's side. > This error will automatically be reported to our engineers.

## Changes

- **2024-09-13** `5a15ef11fd60` — 21 warning
  - added the new `file_not_found` enum value to the `errors/items/allOf[subschema #1: error]/error_code/allOf[subschema #1: error_code]/` response property for the response status `400`
  - added the new `file_not_found` enum value to the `errors/items/allOf[subschema #1: error]/error_code/allOf[subschema #1: error_code]/` response property for the response status `404`
  - added the new `file_not_found` enum value to the `errors/items/allOf[subschema #1: error]/error_code/allOf[subschema #1: error_code]/` response property for the response status `500`
  - added the new `funding_source_error` enum value to the `errors/items/allOf[subschema #1: error]/error_code/allOf[subschema #1: error_code]/` response property for the response status `400`
  - …17 more
- **2024-07-28** `99050ced80fa` — 11 warning, 21 info
  - removed the request property `name`
  - removed the request property `store_id`
  - removed the optional property `errors/items/allOf[subschema #1: error]/carrier_code` from the response with the `400` status
  - removed the optional property `errors/items/allOf[subschema #1: error]/carrier_code` from the response with the `404` status
  - …28 more

[Change history](https://skmtc.dev/shipengine/apis/shipengine-api/changes/v1/environment/webhooks/:webhook_id/put.md)

---

[API](https://skmtc.dev/shipengine/apis/shipengine-api.md) · [All operations](https://skmtc.dev/shipengine/apis/shipengine-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/shipengine/shipengine-api/revisions/5a15ef11fd60/schema)
