Skip to content

Users: Upload

Above is the sample csv columns you need to add for your users

POST /apps/{app_id}/users/upload
Name Type Required Description
app_id string No id of the pulsate app
Name Type Required Description
Authorization string Yes {my_admin_api_token}
Content-Type string No multipart/form-data
Name Type Required Description
file string Yes file contains users csv
create_segment string Yes it can either be true or false
segment_name string No name of the segment if create_segment is true
custom_tag string No Custom tag for segment rule (only if create_segment is true)
Terminal window
curl --request POST \
--url https://control.pulsatehq.com/api/v2/apps/{app_id}/users/upload \
--header 'authorization: Token token={my_admin_api_token}' \
--header 'content-type: multipart/form-data' \
--form file=@/home/Desktop/upload-users.csv \
--form create_segment=true \
--form segment_name=test_segment \
--form custom_tag=test_segment_tag

200

{ "upload": "list uploaded successfully" }