Every shotclock endpoint of the KeepTheScore API, with its parameters, request body and responses, generated from the live API.
Keys, tokens, request bodies and rate limits are explained in the API guide.
In the paths below, {token} is a board token when you send an API key, or one of the board's own tokens without one.
This page is generated from the live API. The same reference is available as OpenAPI 3 at
/apispec.json, if you'd rather generate a client than read tables.
Shotclock
POST/api/v1/sport/{token}/shotclock/adjust
Adjust the shot clock duration by a specified number of seconds.
A positive amount adds time, a negative one takes it off.
The shot clock duration will not go below 0.
Path parameters
Name
Type
Required
Description
token
string
yes
Request body — AdjustSecondsRequest (JSON)
Field
Type
Required
Description
amount
integer
yes
Seconds to add (positive) or take off (negative)
Responses
Status
Meaning
Error codes
Body
200
OK
—
MessageResponse
400
Malformed request
—
—
403
This token does not allow the board to be edited
—
—
404
Board not found
—
—
429
Too many requests
—
—
500
Internal server error
—
—
Response body (200) — MessageResponse (JSON)
Field
Type
Always present
Description
message
string
yes
Status message
POST/api/v1/sport/{token}/shotclock/reset
Reset the shot clock to its initial duration.
Path parameters
Name
Type
Required
Description
token
string
yes
Responses
Status
Meaning
Error codes
Body
200
OK
—
MessageResponse
400
Malformed request
—
—
403
This token does not allow the board to be edited
—
—
404
Board not found
—
—
429
Too many requests
—
—
500
Internal server error
—
—
Response body (200) — MessageResponse (JSON)
Field
Type
Always present
Description
message
string
yes
Status message
POST/api/v1/sport/{token}/shotclock/reset-short
Reset the shot clock to its short-reset duration (e.g. the FIBA 14-second rule).