Xsolla-logo

Import user dataServer-side

post/projects/{project_id}/user_import

Imports user data from a CSV format file to the Login project.

SecurityServer
Request
path Parameters
project_id
required
string <uuid>

Login project ID from Publisher Account.

Request Body schema: multipart/form-data
users
required
string <binary>

CSV file containing user data.

mapping
required
string <json>

File containing field numbers and names. The index should start at 0.

email
required
string <email>

Email to send a report to.

comma
string
Default: ","

CSV separator.

Responses
204

OK

400

Bad Request

403

Forbidden

404

Not Found

Request samples
curl --request POST \
  --url https://login.xsolla.com/api/projects/{project_id}/user_import \
  --header 'X-SERVER-AUTHORIZATION: YOUR_SERVER_TOKEN' \
  --header 'accept: multipart/form-data'
Response samples
{
  • "error": {
    }
}