Webhooks Integration

Update a custom variable

Updates the endpoint with the name <CUSTOM_VARIABLE_NAME>.

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

Path parameters

custom_variable_namestring required

The name of the custom variable.

Request body

is_secretboolean

Make custom variable is secret or not. If the custom variable is secret, the value is not returned in the response payload.

namestring

The name of the variable. It corresponds with <CUSTOM_VARIABLE_NAME>. It must only contains upper-case characters, integers or underscores.

valuestring

Value of the custom variable.

Example request

{
  "name": "CUSTOM_VARIABLE_NAME",
  "value": "CUSTOM_VARIABLE_VALUE"
}

Response

OK

is_secretboolean required

Make custom variable is secret or not. If the custom variable is secret, the value is not returned in the response payload.

namestring required

The name of the variable. It corresponds with <CUSTOM_VARIABLE_NAME>. It must only contains upper-case characters, integers or underscores.

valuestring

Value of the custom variable. It won't be returned if the variable is secret.

Example response

{
  "is_secret": true,
  "name": "CUSTOM_VARIABLE_NAME",
  "value": "CUSTOM_VARIABLE_VALUE"
}

Changes

No recorded changes to this operation across all 1 revision of this API.