{
  "security.disable_user_profile": {
    "documentation": {
      "url": "https://www.elastic.co/guide/en/elasticsearch/reference/8.19/security-api-disable-user-profile.html",
      "description": "Disable a user profile"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_security/profile/{uid}/_disable",
          "methods": [
            "PUT",
            "POST"
          ],
          "parts": {
            "uid": {
              "type": "string",
              "description": "Unique identifier for the user profile"
            }
          }
        }
      ]
    },
    "params": {
      "refresh": {
        "type": "enum",
        "options": [
          "true",
          "false",
          "wait_for"
        ],
        "default": "false",
        "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."
      }
    }
  }
}
