Skip to main content
PATCH
Update a session player

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Session player id

Body

application/json

The fields to change

has_cheated
boolean | null

Marks the player as having cheated, or clears the mark.

name
string | null

A new display name for the player. It is saved on the player's user, not only on this session.

pool_table_id
string<uuid> | null

Moves the player to this pool table, by id. Optional.

pool_table_public_id
string | null

Moves the player to this pool table, by public id such as "PHSGBLLS01". Ignored when pool_table_id is also sent.

profile_picture_url
string | null

A new profile picture for the player. It is saved on the player's user, not only on this session.

Response

The updated session player.

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