Create Segmentation Session
Creates a new segmentation session and uploads an asset CSV file in a single request. Provide asset_file_name with asset_file_contents. The server validates and stores the file for further processing.
Notes
- Returns 202 on successful upload.
- After successful upload, validation of file will automatically trigger and status will be
FILE_VALIDATING. - Poll
GET /{session-id}/statusuntilFILE_VALIDATED. - If there are any issues with validation, session will end up in
FILE_VALIDATION_ERROR, at which point the session will still be persisted to view the errors. - To progress forward from
FILE_VALIDATION_ERROR, delete the session and address the relevant issues before re-uploading. - One session is in
FILE_VALIDATEDstate mappings for the csv file can be pushed throughPUT /{session-id}/settings.
Asset CSV file name and content pair.
{
"asset_file_name": "sample_asset_file.csv",
"asset_file_contents": "contents of file"
}
Name of the asset CSV file
CSV file content as binary data
Session created and CSV file uploaded; file validation initiated.
{
"id": "aaaa1111-bbbb-2222-cccc-3333dddd4444",
"status_url": "/segmentation/aaaa1111-bbbb-2222-cccc-3333dddd4444/status"
}
UUID identifier of the response.
The URL to check the status of the operation.
Bad Request
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unexpected error
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: multipart/form-data' -d '{}' https://{api_host}/ssp/segmentation