Xsolla-logo

Upload codes by ID

post/v2/project/{project_id}/admin/items/game/key/upload/id/{item_id}

Uploads codes by game key ID.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID. You can find this parameter in your Publisher Account next to the name of the project.

Example: 44056
item_id
required
string

Item ID.

Example: 656
Request Body schema: multipart/form-data
file
required
string <binary>

File with codes.

region_id
integer

Region ID.

Responses
200

Codes loading session information was successfully received.

401

Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.

404

Game key or region not found.

Request samples
Response samples
application/json
{
  • "session_id": "fc7105b6e8ee01339582970b37697242",
  • "count_uploaded": 0,
  • "count_total": 100,
  • "count_skipped": 10,
  • "status": "processing"
}