Accept a lobby seek
POST
/bot/seeks/{id}/accept
const url = 'https://play-api.jc.id.lv/bot/seeks/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/seeks/example/accept \ --header 'Authorization: Bearer <token>'Accept an open seek from the public GET /lobby/seeks list. Colour is random.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Seek id.
Responses
Section titled “Responses”Game created.
Media typeapplication/json
object
gameId
required
string
Examplegenerated
{ "gameId": "example"}Accepting your own seek.
No such open seek.
Someone claimed it first.