---
title: "Reorder inbox rules"
method: POST
path: "/api/v2/security/findings/automation/inbox_rules/reorder"
tags: ["Security Monitoring"]
---

# Reorder inbox rules

`POST /api/v2/security/findings/automation/inbox_rules/reorder`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/security/findings/automation/inbox_rules/reorder`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/security/findings/automation/inbox_rules/reorder/post.ts> (a function with typed inputs; its response is checked against the schema)

Reorder the list of inbox rules for the current organization.

## Request body

- InboxRuleReorderRequest: The body of an inbox rule reorder request.
  - `data` InboxRuleReorderItem[], required: The ordered list of all inbox rules. Every rule must be included.
    - `id` string, uuid, required: The ID of the inbox rule.
    - `type` 'inbox_rules', required: The JSON:API type for inbox rules.

## Response `200`

Successfully reordered the inbox rules

- InboxRuleReorderResponse: The response of an inbox rule reorder request.
  - `data` InboxRuleReorderItem[], required: The ordered list of all inbox rules. Every rule must be included.
    - `id` string, uuid, required: The ID of the inbox rule.
    - `type` 'inbox_rules', required: The JSON:API type for inbox rules.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `422`: Unprocessable Entity
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/c555647b183a?raw)
