Accept a challenge
POST
/bot/challenge/{id}/accept
const url = 'https://play-api.jc.id.lv/bot/challenge/example/accept';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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://play-api.jc.id.lv/bot/challenge/example/accept \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Challenge id.
Responses
Section titled “Responses”Game created.
Media typeapplication/json
object
gameId
required
string
Examplegenerated
{ "gameId": "example"}Unknown resource.