v1

latestOpenAPI 3.0.02026-07-142351,1971.3 MB
Key Management

Edit an API key

Edit an API key name.

Note: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the V2 Key Management endpoints instead.

put/api/v1/api_key/{key}

Path parameters

keystring required

The specific API key you are working with.

Request body

createdstring

Date of creation of the API key.

created_bystring

Datadog user handle that created the API key.

keystring

API key.

namestring

Name of your API key.

Example request

{
  "created": "2019-08-02 15:31:07",
  "created_by": "john@example.com",
  "key": "1234512345123456abcabc912349abcd",
  "name": "example user"
}

Response

OK

Example response

{
  "api_key": {
    "created_by": "test_user",
    "key": "1234512345123456abcabc912349abcd",
    "name": "app_key"
  }
}