Bulk import of users to the company, any invalid row fails the entire import and nothing is persisted
POST
/public/v1/users/import
curl \
--request POST 'https://live.smartpmtech.com/public/v1/users/import' \
--header "X-API-KEY: $API_KEY" \
--header "Content-Type: application/json" \
--header "X-COMPANY-ID: string" \
--data '{
"file": "@file"
}'
Request examples
# Headers
X-COMPANY-ID: string
# Payload
{
"file": "@file"
}
Response examples (200)
{
"imported": 42,
"updated": 42,
"unchanged": 42,
"errors": [
{
"type": "string",
"message": "string",
"rows": [
42
]
}
]
}