---
title: "Assign Feature Flags To All Clients"
method: POST
path: "/api/v1/admin/migrations/assign-feature-flags"
tags: ["Admin APIs", "migrations"]
---

# Assign Feature Flags To All Clients

`POST /api/v1/admin/migrations/assign-feature-flags`

Idempotently assign the given feature flags with value="true" to all active
clients.  Clients that already have a flag correctly assigned are skipped.

Body example::

    {
        "feature_flag_ids": ["<uuid-1>", "<uuid-2>"],
        "dry_run": false
    }

Set ``dry_run: true`` to preview what would be changed without writing to
the database.

## Headers

- `X-Confirm-Destructive` string, nullable

## Request body

- AssignFeatureFlagsRequest — Assign a list of feature flags (value='true') to every active client.
  - `feature_flag_ids` string[], required
  - `dry_run` boolean

## Response `200`

Successful Response

- AssignFeatureFlagsResponse
  - `status` string, required
  - `total_clients` integer, required
  - `successful` integer, required
  - `skipped` integer, required
  - `failed` integer, required
  - `errors` string[]
  - `dry_run` boolean, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/carbonarc/apis/carbon-arc-client-admin-api.md) · [All operations](https://skmtc.net/carbonarc/apis/carbon-arc-client-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/carbonarc/carbon-arc-client-admin-api/revisions/a8ca30023371/schema)
