Upsert multiple monitored users via CSV upload

POST /api/entity_analytics/monitoring/users/_csv
multipart/form-data

Body

  • file string(binary) Required

    The CSV file to upload.

Responses

  • 200 application/json

    Bulk upload successful

    Hide response attributes Show response attributes object
    • errors array[object] Required
      Hide errors attributes Show errors attributes object
      • index integer | null Required
      • message string Required
      • username string | null Required
    • stats object Required
      Hide stats attributes Show stats attributes object
      • failed integer Required
      • successful integer Required
      • total integer Required
  • 413

    File too large

POST /api/entity_analytics/monitoring/users/_csv
curl \
 --request POST 'https://<KIBANA_URL>/api/entity_analytics/monitoring/users/_csv' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: multipart/form-data" \
 --form "file=@file"
Response examples (200)
{
  "stats": {
    "total": 2,
    "failed": 1,
    "successful": 1
  },
  "errors": [
    {
      "index": 1,
      "message": "Invalid monitored field",
      "username": "john.doe"
    }
  ]
}