Import users in bulk


                https://api.ocamba.com/v1/hood/users/bulk-import
            

Import multiple users if valid data is provided


Name
Description
fileobjectrequired
Valid csv file containing user data


Example: --form 'text/csv=@"users.csv"'

mapobject
Map of key value pairs used for mapping the header from csv file to field names of users on Ocamba. The key represents header value, the value represents field name from Ocamba.


Example: --form 'application/json=@"{"tag":"tag_id","phone":"mobile_phone_number"}"'
note
1 The file must be a valid csv file.

2 Csv must contain values for tag_id and at least one of email, mobile_phone_number or push_credentials.
200 Arrow
--form 'file=@"users.csv"'
--form 'map=@"{"tag":"tag_id","phone":"mobile_phone_number"}"'
200 Arrow
{
  "message": "Inserted 2 out of 2 users."
}