Submit a dice seed
POST
/bot/game/{id}/seed
const url = 'https://play-api.jc.id.lv/bot/game/example/seed';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"seed":"example"}'};
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/game/example/seed \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "seed": "example" }'Contribute this seat’s post-commit entropy for the provably-fair dice. Submit once, as soon as the game starts and before the opening roll. Fire-and-forget.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Game id.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
seed
required
string
Examplegenerated
{ "seed": "example"}Responses
Section titled “Responses”Accepted (a duplicate