---
title: "Admin Set User Test Flag"
method: PATCH
path: "/api/admin/users/{user_id}/test-flag"
tags: ["admin"]
---

# Admin Set User Test Flag

`PATCH /api/admin/users/{user_id}/test-flag`

## Request

- Base URL: `https://api.sambodh-ias.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sambodh-ias.in/api/admin/users/{user_id}/test-flag`
- Auth: none declared

Mark / unmark an account as a QA or store-review account. Test accounts
are excluded from every growth metric (see growth_metrics_service).

## Path parameters

- `user_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Request body

- TestFlagRequest
  - `is_test` boolean, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2.md) · [All operations](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/revisions/258843d1f806?raw)
