浏览代码

Minor change in the documentation. API key name is required when creating API key (#56166)

Fixes https://github.com/elastic/elasticsearch/issues/56164. A minor update in the documentation, API key name is required when creating API key. If the API key name is not provided then the request will fail.
Navneet Kumar 5 年之前
父节点
当前提交
cbf0e78a7a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      x-pack/docs/en/rest-api/security/create-api-keys.asciidoc

+ 1 - 1
x-pack/docs/en/rest-api/security/create-api-keys.asciidoc

@@ -44,7 +44,7 @@ service.
 The following parameters can be specified in the body of a POST or PUT request:
 
 `name`::
-(Optional, string) Specifies the name for this API key.
+(Required, string) Specifies the name for this API key.
 
 `role_descriptors`::
 (Optional, array-of-role-descriptor) An array of role descriptors for this API