---
title: "/:channel/:giveawayId1"
method: PUT
path: "/giveaways/{channel}/{giveawayId}"
tags: ["single giveaway"]
---

# /:channel/:giveawayId1

`PUT /giveaways/{channel}/{giveawayId}`

## Request

- Base URL: `https://api.streamelements.com/kappa/v2`
- URL: `https://api.streamelements.com/kappa/v2/giveaways/{channel}/{giveawayId}`
- 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/giveaways/:channel/:giveawayId/put.ts> (a function with typed inputs; its response is checked against the schema)

Update giveaway details This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.

## Path parameters

- `channel` string, required
- `giveawayId` string, required

## Headers

- `Accept` string, required

## Request body

- object

## Response `200`

- Giveaway
  - `subscriberLuck` integer, required
  - `subscriberOnly` boolean, required
  - `totalAmount` integer, required
  - `totalUsers` integer, required
  - `botResponses` boolean, required
  - `_id` string, required
  - `winners` string[], required
  - `channel` string, required
  - `createdAt` string, required
  - `updatedAt` string, required
  - `startedAt` string
  - `state` string
  - `endedAt` string

## Other responses

- `400`: Bad Request

## Changes

- **2021-02-08** `8421cd25897f`: 3 breaking
  - the response property `endedAt` became optional for the status `200`
  - the response property `startedAt` became optional for the status `200`
  - the response property `state` became optional for the status `200`
- **2021-02-07** `8c745ed2e9e4`: 11 warning
  - the optional response header `Access-Control-Allow-Credentials` removed for the status `200`
  - the optional response header `Access-Control-Expose-Headers` removed for the status `200`
  - the optional response header `ETag` removed for the status `200`
  - the optional response header `Server` removed for the status `200`
  - …7 more

[Operation history](https://skmtc.dev/streamelements/apis/se-api-docs/changes/giveaways/:channel/:giveawayId/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)
