---
title: "Update a custom header"
method: PUT
path: "/api/v4/hooks/{hook_id}/custom_headers/{key}"
tags: ["hooks"]
---

# Update a custom header

`PUT /api/v4/hooks/{hook_id}/custom_headers/{key}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/hooks/{hook_id}/custom_headers/{key}`
- Auth: none declared

Updates a custom header for a specified webhook.

## Path parameters

- `hook_id` integer, required
- `key` string, required

## Request body

- PutApiV4HooksHookIdCustomHeadersKey: Update a custom header
  - `value` string, required: The value of the custom header

## Response `200`

Update a custom header

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
