---
title: "Set cohort source"
method: POST
path: "/admin/competitions/{slug}/cohort-source"
tags: ["Admin"]
---

# Set cohort source

`POST /admin/competitions/{slug}/cohort-source`

## Request

- Base URL: `https://api.testnet.rise.trade`
- URL: `https://api.testnet.rise.trade/admin/competitions/{slug}/cohort-source`
- Auth: none required
- TypeScript: <https://skmtc.dev/rise/apis/risex-rest-api/docs/admin/competitions/:slug/cohort-source/post.ts> (a function with typed inputs; its response is checked against the schema)

Create or replace a competition's cohort source config (internal). The competition must already exist.

## Path parameters

- `slug` string, required

## Request body

- CompetitionServiceSetCohortFlagSourceBody
  - `root_wallet` string
  - `max_depth` integer
  - `extra_wallets_json` string: extra_wallets_json is a JSON array of hex addresses. Defaults to "[]".

## Response `200`

A successful response.

- ApiSetCohortFlagSourceResponse
  - `competition_slug` string
  - `root_wallet` string
  - `max_depth` integer
  - `extra_wallets_json` string

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-11-03** `98eabcd6a6ad`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rise/apis/risex-rest-api/changes/admin/competitions/:slug/cohort-source/post.md)

---

[API](https://skmtc.dev/rise/apis/risex-rest-api.md) - [All operations](https://skmtc.dev/rise/apis/risex-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rise/apis/risex-rest-api/revisions/98eabcd6a6ad?raw)
