Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Prediction - Example JSON invalid #617

Closed
BarryCarlyon opened this issue Jun 7, 2022 · 1 comment
Closed

Create Prediction - Example JSON invalid #617

BarryCarlyon opened this issue Jun 7, 2022 · 1 comment
Labels
product: docs Documentation on dev.twitch.tv/docs

Comments

@BarryCarlyon
Copy link
Contributor

BarryCarlyon commented Jun 7, 2022

Brief description

The exmaple in Create Prediction is invalid

Errant , on the end of the prediction window

Expected documentation

curl -X POST 'https://api.twitch.tv/helix/predictions' \
-H 'Authorization: Bearer cfabdegwdoklmawdzdo98xt2fo512y' \
-H 'Client-Id: uo6dggojyb8d6soh92zknwmi5ej1q2' \
-H 'Content-Type: application/json' \
-d '{
  "broadcaster_id": "141981764",
  "title": "Any leeks in the stream?",
  "outcomes": [
    {
      "title": "Yes, give it time."
    },
    {
      "title": "Definitely not."
    }
  ],
  "prediction_window": 120
}'

Additional context or questions

I did not check other examples to see if they have the same error

@BarryCarlyon BarryCarlyon added the product: docs Documentation on dev.twitch.tv/docs label Jun 7, 2022
@scott-a-white
Copy link

Thanks for reporting the issue: Fixed https://dev.twitch.tv/docs/api/reference#create-prediction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: docs Documentation on dev.twitch.tv/docs
Projects
None yet
Development

No branches or pull requests

2 participants