lists
Create New List
Create New List. If the list already exists "Conflict" will be returned. The provided populated data may be provided unsorted, but should not contain duplicate element IDs.
Required security scopes:
- api:manage
post/lists
Request
- The document declares no server URL.
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
replaceboolean
Replace list if exists.
Request body
Example request
{
"id": "highscore-list",
"load_index": false,
"merge_size": 500,
"metadata": {
"country": "dk",
"game": "2"
},
"populate": [
{
"id": 100,
"payload": {
"country": "dk",
"name": "Mark Anthony"
},
"score": 100,
"tie_breaker": 2000
},
{
"id": 100,
"payload": {
"country": "dk",
"name": "Mark Anthony"
},
"score": 100,
"tie_breaker": 2000
}
],
"set": "storage-set",
"split_size": 2000
}Response
OK
Example response
{
"avg_segment_elements": 1005.5,
"bottom_element": {
"from_bottom": 4000,
"from_top": 50,
"id": 100,
"list_id": "highscore-list",
"payload": {
"country": "dk",
"name": "Mark Anthony"
},
"score": 100,
"tie_breaker": 2000,
"updated_at": "1996-11-22T14:02:34Z"
},
"cache_hits": 643,
"cache_misses": 123,
"cache_percent": 64.56,
"elements": 15000,
"id": "highscore-list",
"load_index": false,
"merge_size": 500,
"metadata": {
"country": "dk",
"game": "2"
},
"segments": 15,
"set": "storage-set",
"split_size": 2000,
"top_element": {
"from_bottom": 4000,
"from_top": 50,
"id": 100,
"list_id": "highscore-list",
"payload": {
"country": "dk",
"name": "Mark Anthony"
},
"score": 100,
"tie_breaker": 2000,
"updated_at": "1996-11-22T14:02:34Z"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.