Samples management
Endpoints to interact with your samples. Since samples are contained in projects, you will always need to indicate the project_id in which you want to operate.
Last updated
Endpoints to interact with your samples. Since samples are contained in projects, you will always need to indicate the project_id in which you want to operate.
Last updated
GET
https://api.expai.io/api/files/get_allowed
Retrieves the current allowed file formats in EXPAI
Name | Type | Description |
---|---|---|
POST
https://api.expai.io/api/projects/<project_id>/samples/create
Load a file to create a sample in an EXPAI project. We support two types of datasets: regular samples and display samples. Regular samples are those that can be used directly as input to the models. If your model doesn't handle transformation, regular samples must contain transformed data. In this case, you can also upload a display sample for visualisation. Index and column names must match in both samples. They are linked through their IDs.
GET
https://api.expai.io/api/projects/<project_id>/sample/list
List all the samples in your project
GET
https://api.expai.io/api/projects/<project_id>/sample/list/contains/<text>
List all samples in your project containing a string in their names
PATCH
https://api.expai.io/api/projects/<project_id>/sample/<sample_id>
Update metadata in an existing project
POST
https://api.expai.io/api/projects/<project_id>/sample/<sample_id>/append
Update metadata in an existing project
DELETE
https://api.expai.io/api/projects/<project_id>/sample/<sample_id>
Delete a Sample in a Project
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
access-token
string
Active JWT token
Content-Type
string
Value: "application/json"
project_id
string
Unique ID from the project where data must be stored
access-token
string
Active JWT token
sample_file
object
File containing the data to be uploaded
sample_name_des
string
Unique name for the sample
sample_file_separator_des
string
Separator for CSV files
sample_file_encoding_des
string
Encoding used to store the data
sample_target_col
string
If data is supervised, indicate target column
is_display
integer
1 if display sample else 0
original_sample_id
string
If display sample with existing regular sample, indicate the id from the regular sample to link them.
display_sample_id
string
If regular sample with existing display sample, indicate the id from the display sample to link them.
sample_protected_columns_des
string
Columns containing sensitive data that may lead to bias. They will be used for fairness analysis.
sample_drop_columns_des
string
Columns from the data that must be dropped before going through the model
project_id
string
Unique ID from the project where you want to search
access-token
string
Active JWT token
Content-Type
string
Value: "application/json"
project_id
string
Unique ID from the project where you want to search
text
string
String to search Projects by
access-token
string
Active JWT token
Content-Type
string
Value: "application/json"
sample_id
string
Unique ID from the sample to be updated
project_id
string
Project to be modified unique identifier
access-token
string
Active JWT token
sample_name_des
string
New name for the sample
sample_file_encoding_des
string
New value for sample_file_encoding_des
sample_target_col
string
New value for sample_target_col
sample_file
object
New file to replace existing data
sample_id
string
Unique ID from the sample to be updated
project_id
string
Project to be modified unique identifier
access-token
string
Active JWT token
sample_file
object
File including data to be appended
project_id
string
Unique ID for the project containing the sample
sample_id
string
Unique ID for the sample to be deleted
access-token
string
Active JWT token