POST /api/fleet/agents/bulk_rollback

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/agents/bulk_rollback

Refer to Spaces for more information.

Rollback multiple agents to the previous version.

[Required authorization] Route required privileges: fleet-agents-all.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

application/json

Body

Responses

  • 200 application/json

    OK: A successful request.

    Hide response attribute Show response attribute object
    • actionIds array[string] Required

      Not more than 10000 elements.

  • 400 application/json

    A bad request.

    Hide response attributes Show response attributes object
    • error string
    • errorType string
    • message string Required
    • statusCode number
POST /api/fleet/agents/bulk_rollback
curl \
 --request POST 'https://<KIBANA_URL>/api/fleet/agents/bulk_rollback' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: true" \
 --data '{"agents":["agent-1","agent-2"],"batchSize":100,"includeInactive":false}'
Request example
{
  "agents": [
    "agent-1",
    "agent-2"
  ],
  "batchSize": 100,
  "includeInactive": false
}
Response examples (200)
{
  "actionIds": [
    "actionId1",
    "actionId2"
  ]
}
Response examples (400)
{
  "message": "Bad Request"
}