create

suspend fun create(broadcasterId: String, request: CreateRewardRequest): CustomReward

Twitch API: Create Custom Rewards

Creates a Custom Reward in the broadcaster's channel. The maximum number of custom rewards per channel is 50, which includes both enabled and disabled rewards.

Return

the created custom reward.

Parameters

broadcasterId

the ID of the broadcaster to add the custom reward to. This ID must match the user ID found in the OAuth token.

request

the reward configuration.