-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathsecurity.put_user.json
39 lines (39 loc) · 1.19 KB
/
security.put_user.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"security.put_user": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html",
"description": "Adds and updates users in the native realm. These users are commonly referred to as native users."
},
"stability": "stable",
"visibility": "public",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_security/user/{username}",
"methods": ["PUT", "POST"],
"parts": {
"username": {
"type": "string",
"description": "The username of the User"
}
}
}
]
},
"params": {
"refresh": {
"type": "enum",
"options": ["true", "false", "wait_for"],
"description": "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
}
},
"body": {
"description": "The user to add",
"required": true
}
}
}