Query parameters

  • refresh string

    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.

    Values are true, false, or wait_for.

application/json

Body Required

  • * object Additional properties
    Hide * attribute Show * attribute object
    • * object Additional properties

      Additional properties are allowed.

      Hide * attributes Show * attributes object

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • * object Additional properties
      Hide * attribute Show * attribute object
      • * object

        Additional properties are allowed.

        Hide * attribute Show * attribute object
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
    }
  }
}