Skip to main content
POST
/
radius
/
migration
/
import
Start an Import
curl --request POST \
  --url https://api.altostrat.io/radius/migration/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "filename": "rad_file_01HGN7RXYZABC123.csv",
  "mapping": {
    "col_0": "username",
    "col_1": "password",
    "col_2": "groups"
  },
  "settings": {
    "delimiter": "comma",
    "skip_lines": 1,
    "import_type": "users"
  }
}'
{
  "data": {
    "id": "mig_job_01HGN7RXYZABC123",
    "type": "dry-run",
    "filename": "user_import_q4.csv",
    "status": "completed",
    "total_rows": 1000,
    "processed_rows": 1000,
    "created_count": 990,
    "updated_count": 0,
    "skipped_count": 5,
    "error_count": 5,
    "results_url": "<string>",
    "summary": {
      "total_rows": 123,
      "created": 123,
      "updated": 123,
      "skipped": 123,
      "errors": 123
    },
    "started_at": "2023-11-07T05:31:56Z",
    "completed_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Enter your API key in the format: Bearer <token>

Body

application/json
filename
string
required

The unique filename obtained from the signed URL endpoint.

Example:

"rad_file_01HGN7RXYZABC123.csv"

mapping
object
required

An object mapping detected column IDs (e.g., col_0) to entity fields (e.g., username).

Example:
{
"col_0": "username",
"col_1": "password",
"col_2": "groups"
}
settings
object
required

Response

The import job was accepted and is being processed.

data
object