/api/alert-rules (POST)
POST
/api/alert-rules
const url = 'https://example.com/api/alert-rules';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"rating":"Good","leagueId":1,"leagueName":"example","market":"H2H","minEdge":1,"kickoffWindowMinutes":1,"requireLineupsConfirmed":true,"deliveryChannel":"Telegram"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/alert-rules \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "rating": "Good", "leagueId": 1, "leagueName": "example", "market": "H2H", "minEdge": 1, "kickoffWindowMinutes": 1, "requireLineupsConfirmed": true, "deliveryChannel": "Telegram" }'Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
rating
string
leagueId
integer format: int32
leagueName
string
market
string
minEdge
number format: double
kickoffWindowMinutes
integer format: int32
requireLineupsConfirmed
boolean
deliveryChannel
string
object
rating
string
leagueId
integer format: int32
leagueName
string
market
string
minEdge
number format: double
kickoffWindowMinutes
integer format: int32
requireLineupsConfirmed
boolean
deliveryChannel
string
object
rating
string
leagueId
integer format: int32
leagueName
string
market
string
minEdge
number format: double
kickoffWindowMinutes
integer format: int32
requireLineupsConfirmed
boolean
deliveryChannel
string
Responses
Section titled “ Responses ”OK