POST /api/attack_discovery/schedules/_bulk_disable

Spaces method and path for this operation:

post /s/{space_id}/api/attack_discovery/schedules/_bulk_disable

Refer to Spaces for more information.

Disables multiple Attack Discovery schedules by ID.

application/json

Body Required

  • ids array[string(nonempty)] Required

    The unique identifiers of the Attack Discovery schedules to update.

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

Responses

  • 200 application/json

    Successfully processed the bulk disable request.

    Hide response attributes Show response attributes object
    • errors array[object] Required
      Hide errors attributes Show errors attributes object
      • message string Required

        The error message returned for the failed schedule.

      • rule object Required
        Hide rule attributes Show rule attributes object
        • id string(nonempty) Required

          A string that does not contain only whitespace characters.

          Minimum length is 1.

        • name string Required

          The name of the failed schedule.

      • status number

        Optional HTTP status associated with the failed schedule operation.

    • ids array[string(nonempty)] Required

      The unique identifiers of the schedules successfully affected by the bulk action.

      Minimum length of each is 1.

    • total number Required

      The total number of schedules matched by the bulk action.

  • 400 application/json

    Bad Request response.

    Hide response attributes Show response attributes object
    • error string

      Error type

    • message string

      Human-readable error message describing what went wrong

    • status_code number

      HTTP status code

POST /api/attack_discovery/schedules/_bulk_disable
curl \
 --request POST 'https://localhost:5601/api/attack_discovery/schedules/_bulk_disable' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"ids":["12345678-1234-1234-1234-123456789012","98765432-1234-1234-1234-123456789012"]}'
Request example
{
  "ids": [
    "12345678-1234-1234-1234-123456789012",
    "98765432-1234-1234-1234-123456789012"
  ]
}
Response examples (200)
{
  "errors": [],
  "ids": [
    "12345678-1234-1234-1234-123456789012",
    "98765432-1234-1234-1234-123456789012"
  ],
  "total": 2
}
Response examples (400)
{
  "error": "Bad Request",
  "message": "Invalid request parameters.",
  "status_code": 400
}