---
title: "/:channel/:contestId/winner"
method: PUT
path: "/contests/{channel}/{contestId}/winner"
tags: ["single contest", "contests"]
---

# /:channel/:contestId/winner

`PUT /contests/{channel}/{contestId}/winner`

## Request

- Base URL: `https://api.streamelements.com/kappa/v2`
- URL: `https://api.streamelements.com/kappa/v2/contests/{channel}/{contestId}/winner`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://api.streamelements.com/oauth2/authorize`
    - Token URL: `https://api.streamelements.com/oauth2/token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/streamelements/apis/se-api-docs/docs/contests/:channel/:contestId/winner/put.ts> (a function with typed inputs; its response is checked against the schema)

Draw a winner of contest

## Path parameters

- `channel` string, required
- `contestId` string, required

## Headers

- `Accept` string, required

## Request body

- object

## Response `201`

## Changes

- **2021-02-08** `8421cd25897f`: 1 info
  - api tag `contests` added
- **2021-02-07** `8c745ed2e9e4`: 11 warning
  - the optional response header `Access-Control-Allow-Credentials` removed for the status `201`
  - the optional response header `Access-Control-Expose-Headers` removed for the status `201`
  - the optional response header `ETag` removed for the status `201`
  - the optional response header `Server` removed for the status `201`
  - …7 more

[Operation history](https://skmtc.dev/streamelements/apis/se-api-docs/changes/contests/:channel/:contestId/winner/put.md)

---

[API](https://skmtc.dev/streamelements/apis/se-api-docs.md) - [All operations](https://skmtc.dev/streamelements/apis/se-api-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/streamelements/apis/se-api-docs/revisions/aa13169b9373?raw)
