---
title: "Update a custom variable"
method: PUT
path: "/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}"
tags: ["Webhooks Integration"]
---

# Update a custom variable

`PUT /api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}`

Updates the endpoint with the name `<CUSTOM_VARIABLE_NAME>`.

## Path parameters

- `custom_variable_name` string, required

## Request body

- WebhooksIntegrationCustomVariableUpdateRequest — Update request of a custom variable object. *All properties are optional.*
  - `is_secret` boolean — Make custom variable is secret or not. If the custom variable is secret, the value is not returned in the response payload.
  - `name` string — The name of the variable. It corresponds with `<CUSTOM_VARIABLE_NAME>`. It must only contains upper-case characters, integers or underscores.
  - `value` string — Value of the custom variable.

## Response `200`

OK

- WebhooksIntegrationCustomVariableResponse — Custom variable for Webhook integration.
  - `is_secret` boolean, required — Make custom variable is secret or not. If the custom variable is secret, the value is not returned in the response payload.
  - `name` string, required — The name of the variable. It corresponds with `<CUSTOM_VARIABLE_NAME>`. It must only contains upper-case characters, integers or underscores.
  - `value` string — Value of the custom variable. It won't be returned if the variable is secret.

## Other responses

- `400` — Bad Request
- `403` — Authentication error
- `404` — Item Not Found
- `429` — Too many requests

---

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