Create a new API key Deprecated

POST /groups/{groupId}/apps/{appId}/api_keys

Create a new API key.

Path parameters

application/json

Body Required

The API key to create.

  • name string Required

Responses

  • 201 application/json

    The API key was successfully created.

    Hide response attributes Show response attributes object
    • _id string
    • key string
    • name string
    • disabled string
POST /groups/{groupId}/apps/{appId}/api_keys
curl \
 --request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/api_keys' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"string"}'
Request examples
{
  "name": "string"
}
Response examples (201)
{
  "_id": "string",
  "key": "string",
  "name": "string",
  "disabled": "string"
}