Premiums API
  1. Trainee
Premiums API
  • Seance
    • Execute a seance.
      POST
    • Cancels a seance.
      POST
    • Update a seance.
      PATCH
  • Company
    • Update company information.
      PATCH
    • Bulk Imports companies.
      POST
    • Imports companies.
      PUT
  • Trainee
    • Imports Trainee.
      PUT
    • Bulk Imports Trainee.
      POST
  • Schemas
    • Schemas
      • SeancePeriodClosed
    • Response
      • Success
      • SimulateResponse
      • SeanceCancelSuccess
      • CompanyResponse
      • SeanceConfirmSuccess
      • UnauthorizedError
      • SeancePaidConfirmSuccess
      • BadRequestError
      • SeancePeriodClosedSuccess
      • BadRequestWithMessagesError
      • NotFoundError
      • CompanyUpdateSuccess
      • InternalError
      • BadRequestWithSeanceCancelMessagesError
      • BadRequestWithSessionInformationError
      • BadRequestWithSeanceConfirmMessagesError
      • TooManyRequestsMessagesError
      • BadRequestWithSeancePaidConfirmMessagesError
      • BadRequestWithSeancePeriodClosedMessagesError
      • BadRequestWithCompanyUpdateMessagesError
    • Seance
    • CompanyUpdate
    • CompanyImportCsvFormat
    • SeanceUpdate
    • TraineeImportCsvFormat
  1. Trainee

Bulk Imports Trainee.

POST
/v2/trainee/bulk-import
Imports a list of trainee from a file. Requires premiums:write scope.

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Body Params multipart/form-data

Responses

🟢200Success
application/json
The request succeeded. The request does not provide any data in the response
Body

🟠400BadRequestWithMessagesError
🟠401UnauthorizedError
🔴500InternalError
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://premiums-api-staging.anopio.com/v2/trainee/bulk-import' \
--header 'Authorization: Bearer <token>' \
--form 'file=@"C:\\Users\\serge\\Desktop\\EDUCAM\\PREMIUMS\\data processing\\learners_import.csv"'
Response Response Example
200 - Example 1
{
    "status": 200
}
Modified at 2025-12-19 14:11:14
Previous
Imports Trainee.
Next
SeancePeriodClosed
Built with