Skip to content

Add Prediction

Submits a new prediction for an active or upcoming event.

POST/prediction/v1/add
Terminal window
curl -X POST https://api.juspredict.com/prediction/v1/add \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"user_id": "user-uuid",
"event_id": "event-uuid",
"question_id": "q-uuid",
"order_id": "order-uuid",
"percentage": "75",
"predicted_outcome": "Team A",
"predicted_outcome_choice": "Yes",
"invested_amount": "50.00"
}'
FieldRequirement
percentageNumeric string between 1 and 100.
invested_amountNumeric string between 1 and 1,000,000,000.
{
"status": { "type": "SUCCESS" },
"prediction_id": "pred-uuid"
}
FieldTypeDescription
statusStatusOperation status.