Skip to content

Commit 51a6f24

Browse files
Update rest-api-spec main (#1535)
Co-authored-by: delvedor <[email protected]>
1 parent 55ed6b4 commit 51a6f24

File tree

6 files changed

+191
-3
lines changed

6 files changed

+191
-3
lines changed

output/schema/schema.json

Lines changed: 71 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"security.disable_user_profile": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-disable-user-profile.html",
5+
"description": "Disables a user profile so it's not visible in user profile searches."
6+
},
7+
"stability": "experimental",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"]
11+
},
12+
"url": {
13+
"paths": [
14+
{
15+
"path": "/_security/profile/{uid}/_disable",
16+
"methods": ["PUT", "POST"],
17+
"parts": {
18+
"uid": {
19+
"type": "string",
20+
"description": "Unique identifier for the user profile"
21+
}
22+
}
23+
}
24+
]
25+
},
26+
"params": {
27+
"refresh": {
28+
"type": "enum",
29+
"options": ["true", "false", "wait_for"],
30+
"description": "If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
31+
}
32+
}
33+
}
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"security.enable_user_profile": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enable-user-profile.html",
5+
"description": "Enables a user profile so it's visible in user profile searches."
6+
},
7+
"stability": "experimental",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"]
11+
},
12+
"url": {
13+
"paths": [
14+
{
15+
"path": "/_security/profile/{uid}/_enable",
16+
"methods": ["PUT", "POST"],
17+
"parts": {
18+
"uid": {
19+
"type": "string",
20+
"description": "An unique identifier of the user profile"
21+
}
22+
}
23+
}
24+
]
25+
},
26+
"params": {
27+
"refresh": {
28+
"type": "enum",
29+
"options": ["true", "false", "wait_for"],
30+
"description": "If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
31+
}
32+
}
33+
}
34+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"security.search_user_profiles": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-search-user-profile.html",
5+
"description": "Searches for user profiles that match specified criteria."
6+
},
7+
"stability": "experimental",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_security/profile/_search",
17+
"methods": ["GET", "POST"]
18+
}
19+
]
20+
},
21+
"params": {
22+
"data": {
23+
"type": "list",
24+
"description": "A comma-separated list of keys for which the corresponding application data are retrieved."
25+
}
26+
},
27+
"body": {
28+
"description": "The search definition for user profiles",
29+
"required": false
30+
}
31+
}
32+
}

specification/_json_spec/security.update_user_profile_data.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"url": {
1414
"paths": [
1515
{
16-
"path": "/_security/profile/_data/{uid}",
17-
"methods": ["POST"],
16+
"path": "/_security/profile/{uid}/_data",
17+
"methods": ["PUT", "POST"],
1818
"parts": {
1919
"uid": {
2020
"type": "string",

0 commit comments

Comments
 (0)