Bulk import persons
Bulk import persons into your organization by uploading a CSV file.
The import will take the following CSV column headers into consideration:
"slashid:emails","slashid:phone_numbers","slashid:usernames","slashid:region","slashid:groups","slashid:attributes"
Each row in the CSV must contain at least one handle for the person (email address, phone number, or a username). Optionally, you can specify a list of roles, a geographical region and attributes. Attributes are a JSON-encoded map from attribute bucket names to key-value pairs. Email addresses, phone numbers, and usernames must be comma-separated.
Header Parameters
- SlashID-OrgID string required
The organization ID
Example: af5fbd30-7ce7-4548-8b30-4cd59cb2aba1
- multipart/form-data
Request Body required
- persons binary required
File in CSV format that contains the persons to import.
- 200
- 400
- 402
OK
- application/json
- Schema
- Example (from schema)
Schema
meta object
errors object[]
result object
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
],
"result": {
"successful_imports": 0,
"failed_imports": 0,
"failed_csv": "string"
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
meta object
errors object[]
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
Pricing Tier Violation - operation violated the limits specified in its pricing tier.
- application/json
- Schema
- Example (from schema)
Schema
meta object
errors object[]
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
POST /persons/bulk-import
https://api.slashid.com
Authorization
type: apiKeyname: SlashID-API-Keyin: header
Request
Request
curl -L -X POST 'https://api.slashid.com/persons/bulk-import' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'
curl -L -X POST 'https://api.slashid.com/persons/bulk-import' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'
curl -L -X POST 'https://api.slashid.com/persons/bulk-import' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'
curl -L -X POST 'https://api.slashid.com/persons/bulk-import' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'
curl -L -X POST 'https://api.slashid.com/persons/bulk-import' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'
curl -L -X POST 'https://api.slashid.com/persons/bulk-import' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'
curl -L -X POST 'https://api.slashid.com/persons/bulk-import' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>'