---
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}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

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/datadog-api-v1-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v1-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v1-collection/revisions/ca5871004d26?raw)
