Game API
Home
LootLocker
Home
LootLocker
LootLocker
  1. Home
  • Back to home
  • Files
  • List Files for Player
    GET
  • List Public Files for Player
    GET
  • Get File By ID for Player
    GET
  • Delete File By ID for Player
    DELETE
  • Upload Public File For Player
    POST
  • List File Revisions for Player
    GET
  • Get File Revision by ID for Player
    GET
  • Promote File Revision to Current for Player
    POST
  • Upload File for Player (with optional key for upsert)
    POST
  • Get File By Key for Player
    GET
  • Delete File By Key for Player
    DELETE
  • List File Revisions by Key for Player
    GET
  • Get File Revision by Key and Revision ID for Player
    GET
  • Promote File Revision by Key to Current for Player
    POST
  1. Home

Upload File for Player (with optional key for upsert)

POST
https://api.lootlocker.com/game/player/files
Upload a file for the player. If a key is provided and a file with that key already exists for this player, the file will be updated (appending a new revision). If no file with that key exists, a new file will be created. If no key is provided, a new file is always created (backward compatible).

Request

Authorization
Header Params

Body Params multipart/form-data

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.lootlocker.com/game/player/files' \
--header 'LL-Version: 2021-03-01' \
--header 'x-session-token: <api-key>' \
--form 'file=@""' \
--form 'purpose="save_game"' \
--form 'public="true"' \
--form 'key="my_save_slot_1"'
Response Response Example
{
    "id": 0,
    "revision_id": "string",
    "name": "string",
    "key": "string",
    "size": 0,
    "purpose": "string",
    "public": true,
    "url": "string",
    "url_expires_at": "2019-08-24T14:15:22.123Z",
    "created_at": "2019-08-24T14:15:22.123Z"
}
Modified at 2026-09-29 11:02:58
Previous
Promote File Revision to Current for Player
Next
Get File By Key for Player
Built with