﻿---
title: stack kb security-detections-api cli namespace
description: Kibana security-detections-api API commands 
url: https://www.elastic.co/elastic/docs-builder/docs/4097/reference/elastic-cli/cli/stack/kb/security-detections-api
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb security-detections-api cli namespace
```bash
elastic stack kb security-detections-api --help
```

Kibana security-detections-api API commands

## Commands

<page-card>
  Assign and unassign users from attack discovery alerts
</page-card>

<page-card>
  Find and/or aggregate attack discovery alerts
</page-card>

<page-card>
  Set attack discovery alerts workflow status
</page-card>

<page-card>
  Add and remove attack discovery alert tags
</page-card>

<page-card>
  Returns user privileges for the Kibana space
</page-card>

<page-card>
  Delete a detection rule
</page-card>

<page-card>
  Retrieve a detection rule
</page-card>

<page-card>
  Patch a detection rule
</page-card>

<page-card>
  Create a detection rule
</page-card>

<page-card>
  Update a detection rule
</page-card>

<page-card>
  Apply a bulk action to detection rules
</page-card>

<page-card>
  Export detection rules
</page-card>

<page-card>
  List all detection rules
</page-card>

<page-card>
  Import detection rules
</page-card>

<page-card>
  Preview rule alerts generated on specified time range
</page-card>

<page-card>
  Assign and unassign users from detection alerts
</page-card>

<page-card>
  Find and/or aggregate detection alerts
</page-card>

<page-card>
  Set a detection alert status
</page-card>

<page-card>
  Add and remove detection alert tags
</page-card>

<page-card>
  List all detection rule tags
</page-card>