Player Kits
GET
/server/v1/players/{steam64}/kits
const url = 'https://example.com/server/v1/players/1/kits';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/server/v1/players/1/kitsEvery kit this player has saved, resolved into ready-to-equip items, with the magazine broken out so a caller can keep the spare topped up.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”steam64
required
Steam64
integer
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Player Kits Server V1 Players Steam64 Kits Get
object
key
additional properties
SavedKit
One of a player’s saved kits, with the magazine broken out so a caller can keep the spare topped up.
object
items
required
Items
Array<object>
ItemA kit item, resolved from the stored [itemId, amount, "1,2,3"] tuple.
object
itemId
required
Itemid
integer
amount
required
Amount
integer
state
required
State
Array<integer>
Examplegenerated
{ "additionalProperty": { "items": [ { "itemId": 1, "amount": 1, "state": [ 1 ] } ], "magazine": { "itemId": 1, "amount": 1, "state": [ 1 ] } }}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}