single giveaway
/:channel/:giveawayId
Changed onCreate a new Giveaway This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.
post/giveaways/{channel}/{giveawayId}
Request
- Base URLhttps://api.streamelements.com/kappa/v2
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://api.streamelements.com/oauth2/authorizeToken URLhttps://api.streamelements.com/oauth2/token
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
channelstring required
Example:5b2e2007760aeb7729487dab
guid - Channel id
giveawayIdstring required
guid|empty - Giveaway id or no value for ongoing giveaway
Headers
Acceptstring required
Example:application/json; charset=utf-8
Request body
object required
Example request
{}Response
Example response
{
"subscriberLuck": 1,
"subscriberOnly": false,
"totalAmount": 0,
"totalUsers": 0,
"botResponses": false,
"_id": "5c0a6c00de9a4c3a70a14da6",
"winners": [],
"channel": "5b2e2007760aeb7729487dab",
"createdAt": "2018-12-07T12:48:00.133Z",
"updatedAt": "2018-12-07T12:48:00.133Z"
}Changes
- breaking
the response's body type changed from no type to
objectfor status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- breaking
removed the required property
from the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking