Import persons csv

POST /import/csv/persons

Import persons from a CSV file. Creates or updates persons based on CSV rows. Supports role, contract type, and active status updates.

Query parameters

  • update boolean

    Whether to update existing persons

Responses

  • 201 application/json

    Persons imported successfully

    Hide response attributes Show response attributes object
    • id string(uuid)
    • first_name string
    • last_name string
    • email string(email)
    • phone string
    • active boolean
  • 400

    Invalid CSV format or missing required columns

POST /import/csv/persons
curl \
 --request POST 'http://api.example.com/import/csv/persons' \
 --header "Authorization: $API_KEY"
Response examples (201)
[
  {
    "id": "a24a6ea4-ce75-4665-a070-57453082c25",
    "first_name": "John",
    "last_name": "Doe",
    "email": "john.doe@example.com",
    "phone": 1234567890,
    "active": true
  }
]