---
title: "Reorder Groups"
method: PATCH
path: "/api/v2/sensitive-data-scanner/config"
tags: ["Sensitive Data Scanner"]
---

# Reorder Groups

`PATCH /api/v2/sensitive-data-scanner/config`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/sensitive-data-scanner/config`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Reorder the list of groups.

## Request body

- SensitiveDataScannerConfigRequest: Group reorder request.
  - `data` SensitiveDataScannerReorderConfig, required: Data related to the reordering of scanning groups.
    - `id` string: ID of the configuration.
    - `relationships` SensitiveDataScannerConfigurationRelationships: Relationships of the configuration.
      - `groups` SensitiveDataScannerGroupList: List of groups, ordered.
        - `data` SensitiveDataScannerGroupItem[]: List of groups. The order is important.
          - `id` string: ID of the group.
          - `type` 'sensitive_data_scanner_group': Sensitive Data Scanner group type.
    - `type` 'sensitive_data_scanner_configuration': Sensitive Data Scanner configuration type.
  - `meta` SensitiveDataScannerMetaVersionOnly, required: Meta payload containing information about the API.
    - `version` integer: Version of the API (optional).

## Response `200`

OK

- SensitiveDataScannerReorderGroupsResponse: Group reorder response.
  - `meta` SensitiveDataScannerMeta: Meta response containing information about the API.
    - `count_limit` integer: Maximum number of scanning rules allowed for the org.
    - `group_count_limit` integer: Maximum number of scanning groups allowed for the org.
    - `has_highlight_enabled` boolean: (Deprecated) Whether or not scanned events are highlighted in Logs or RUM for the org.
    - `has_multi_pass_enabled` boolean: (Deprecated) Whether or not scanned events have multi-pass enabled.
    - `is_pci_compliant` boolean: Whether or not the org is compliant to the payment card industry standard.
    - `version` integer: Version of the API.

## Other responses

- `400`: Bad Request
- `403`: Authentication Error
- `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/da68bf029e4c?raw)
