This function imports email accounts from an already uploaded CSV file.
uapi --output=jsonpretty \ --user=username \ CSVImport \ doimport \ id='Leq58oid3sF3Moye3_YbJGqoMvCb7M4j' \ type='email' \ domain='example.com'
{- "apiversion": 3,
- "func": "doimport",
- "module": "CSVImport",
- "result": {
- "data": {
- "results": [
- {
- "email": "j.doe@example.com",
- "reason": "OK",
- "status": 1,
- "type": "email"
}, - {
- "email": "jdoe@example.com",
- "reason": "The account jdoe@example.com already exists!",
- "status": 0,
- "type": "email"
}
]
}, - "errors": [
- "1 error(s) were encountered while importing accounts."
], - "messages": null,
- "metadata": { },
- "status": 0,
- "warnings": null
}
}