Competition

Set cohort username

Changed on

Set a username for a wallet in a cohort-whitelisted competition (one whose scoring_config sets participant_cohort_flag_key). Requires a valid session for the named wallet. Fails with PERMISSION_DENIED if the wallet isn't in that competition's cohort or doesn't match the authenticated session, or FAILED_PRECONDITION if the competition has no cohort whitelist at all.

post/v1/competitions/{slug}/cohort-username

Request

Path parameters

slugstring required

Competition slug — its scoring_config must set participant_cohort_flag_key.

Request body

walletstring

Wallet address (0x-prefixed). Must already be in that competition's cohort whitelist.

usernamestring

Response

A successful response.

walletstring
usernamestring

Changes