---
title: "Bulk deactivate (clear) flags"
method: PATCH
path: "/flags"
tags: ["flags"]
---

# Bulk deactivate (clear) flags

`PATCH /flags`

Deactivates (clears) multiple flags in bulk for the current user.

## Headers

- `organization-id` string

## Request body

- FlagPatchAllRequestDto
  - `flags` FlagPatchRequestDto[], required
    - `id` string, required
    - `active` boolean, required

## Response `200`

The flag has been successfully cleared.

- FlagPatchAllResponseDto
  - `flags` FlagPatchResponseDto[], required
    - `id` string, required
    - `success` boolean, required

## Other responses

- `400` — Bad request.
- `401` — Unauthorized if authorization token is not provided or invalid.
- `403` — Forbidden if user access is not right.

---

[API](https://skmtc.net/certifyos/apis/certifyos-api.md) · [All operations](https://skmtc.net/certifyos/apis/certifyos-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certifyos-api/versions/df08dd00da43/schema)
