Patch Sandbox Leaderboard Config
PATCH/v1/sandbox/:sandbox_id/leaderboard/:leaderboard_id
Update a specific leaderboard config for a specific sandbox
Requires permission sandbox:config:edit.
Request
Path Parameters
Sandbox ID
- application/json
Body
required
Account ID of the user who last modified the resource
Timestamp of when the resource was last modified
Timestamp of when the resource was created
ID of the Sandbox
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
custom_data
object
Custom data associated with the resource
Possible values: [GLOBAL, FRIENDS]
An enumeration.
Possible values: >= 1 and <= 10000
The maximum number of players that will be a part of this leaderboard
Possible values: [asc, desc]
An enumeration.
Possible values: [INVENTORY, RANK]
An enumeration.
Either the rank id or item id for the data source of this leaderboard
If banned players should be excluded from this leaderboard
Possible values: >= 1
How recently a player must have logged in to be included in this leaderboard
Possible values: >= 60
Default value: 300
How frequently the data on the leaderboard will be updated
Whether or not the stat which determines placements on the leaderboard should be exposed to clients
Default value: true
Whether or not specific player data should be saved for this leaderboard. If disabled, only the leaderboard meta data will be available.
Unique identifier for this leaderboard
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Account ID of the user who last modified the resource
Timestamp of when the resource was last modified
Timestamp of when the resource was created
ID of the Sandbox
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
custom_data
object
Custom data associated with the resource
Possible values: [GLOBAL, FRIENDS]
An enumeration.
Possible values: >= 1 and <= 10000
The maximum number of players that will be a part of this leaderboard
Possible values: [asc, desc]
An enumeration.
Possible values: [INVENTORY, RANK]
An enumeration.
Either the rank id or item id for the data source of this leaderboard
If banned players should be excluded from this leaderboard
Possible values: >= 1
How recently a player must have logged in to be included in this leaderboard
Possible values: >= 60
Default value: 300
How frequently the data on the leaderboard will be updated
Whether or not the stat which determines placements on the leaderboard should be exposed to clients
Default value: true
Whether or not specific player data should be saved for this leaderboard. If disabled, only the leaderboard meta data will be available.
Unique identifier for this leaderboard
{
"last_modified_account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_modified_timestamp": "2024-07-29T15:51:28.071Z",
"created_timestamp": "2024-07-29T15:51:28.071Z",
"sandbox_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"custom_data": {},
"player_list": "GLOBAL",
"max_size": 0,
"sort_order": "asc",
"source": "INVENTORY",
"source_id": "string",
"remove_restricted": false,
"required_recent_login_days": 0,
"update_frequency_seconds": 300,
"expose_stat": false,
"expose_players": true,
"leaderboard_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}