Upload a file Beta

POST /api/endpoint/action/upload

Upload a file to an endpoint.

application/json; Elastic-Api-Version=2023-10-31

Body Required

  • Values are endpoint, sentinel_one, or crowdstrike.

  • alert_ids array[string(nonempty)]

    A string that does not contain only whitespace characters

    At least 1 element. Minimum length of each is 1.

  • case_ids array[string]

    Case IDs to be updated (cannot contain empty strings)

    At least 1 element. Minimum length of each is 1.

  • comment string

    Optional comment

  • endpoint_ids array[string] Required

    List of endpoint IDs (cannot contain empty strings)

    At least 1 element. Minimum length of each is 1.

  • parameters object Required

    Additional properties are allowed.

    Hide parameters attribute Show parameters attribute object
  • file string(binary) Required

Responses

  • 200 application/json; Elastic-Api-Version=2023-10-31

    OK

    Additional properties are allowed.

POST /api/endpoint/action/upload
curl \
 -X POST https://<KIBANA_URL>/api/endpoint/action/upload \
 -H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
  "agent_type": "endpoint",
  "alert_ids": [
    "string"
  ],
  "case_ids": [
    "string"
  ],
  "comment": "string",
  "endpoint_ids": [
    "string"
  ],
  "parameters": {
    "overwrite": false
  },
  "file": "@file"
}
Response examples (200)
{}