Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
cbf0e78a7a

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