---
title: "Set the test users: only they are in. [] opens it to its audiences."
method: PUT
path: "/api/rewards/admin/challenges/{id}/test-users"
tags: ["Rewards (admin)"]
---

# Set the test users: only they are in. \[\] opens it to its audiences.

`PUT /api/rewards/admin/challenges/{id}/test-users`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/rewards/admin/challenges/{id}/test-users`
- Auth: HTTP bearer

The one change allowed while live — try it on one account in production, then open it. 409 once ended.

## Path parameters

- `id` number, required

## Request body

- ChallengeTestUsersDto
  - `user_ids` string[], required

## Response `200`

## Changes

- **2026-11-09** `a76676b4df4a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/changes/api/rewards/admin/challenges/:id/test-users/put.md)

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/0d22636dfcb9?raw)
