Skip to main content
POST
Create a game shot

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The shot to record

round_number
integer
required
Required range: x >= 0
started_at
string<date-time>
required
team_player_id
string<uuid>
required

The team player taking the shot. It is the only id needed: the game, team, user, venue, brand and organisation are all worked out from it.

difficulty
number
is_edited
boolean
is_timed_out
boolean
previous_rating
number

The player's rating before this shot. Optional. A new rating is worked out only when previous_rating, shots_played, difficulty and successful are all sent.

shot_data
any
shots_played
integer
successful
boolean
taken_at
string<date-time>

When the shot was taken. Leave it out, or send null, when the turn timed out.

Response

The created game shot.

data
object

The payload. Left out when there is none.

message
string

Text that is safe to show a user. Left out when there is none.

status
enum<string>

success or error. A 410 for a session that has ended says ended instead.

Available options:
success,
error,
ended