Create or update application privileges Added in 6.4.0
Query parameters
-
refresh string
If
true
(the default) then refresh the affected shards to make this operation visible to search, ifwait_for
then wait for a refresh to make this operation visible to search, iffalse
then do nothing with refreshes.Values are
true
,false
, orwait_for
.
PUT /_security/privilege
curl \
-X PUT http://api.example.com/_security/privilege \
-H "Content-Type: application/json" \
-d '{"additionalProperty1":{"additionalProperty1":{"actions":["string"],"application":"string","name":"string","metadata":{"additionalProperty1":{},"additionalProperty2":{}}},"additionalProperty2":{"actions":["string"],"application":"string","name":"string","metadata":{"additionalProperty1":{},"additionalProperty2":{}}}},"additionalProperty2":{"additionalProperty1":{"actions":["string"],"application":"string","name":"string","metadata":{"additionalProperty1":{},"additionalProperty2":{}}},"additionalProperty2":{"actions":["string"],"application":"string","name":"string","metadata":{"additionalProperty1":{},"additionalProperty2":{}}}}}'
Request examples
{
"additionalProperty1": {
"additionalProperty1": {
"actions": [
"string"
],
"application": "string",
"name": "string",
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
}
},
"additionalProperty2": {
"actions": [
"string"
],
"application": "string",
"name": "string",
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
}
}
},
"additionalProperty2": {
"additionalProperty1": {
"actions": [
"string"
],
"application": "string",
"name": "string",
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
}
},
"additionalProperty2": {
"actions": [
"string"
],
"application": "string",
"name": "string",
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
}
}
}
}
Response examples (200)
{
"additionalProperty1": {
"*": {
"created": true
}
},
"additionalProperty2": {
"*": {
"created": true
}
}
}