The following APIs allow you to interact with datasets.
limit
number?offset
number?user
string?query
string?items
arraytotalPages
numbercurrentPage
numberconst result = await axios.get(
`https://dibby.ai/api/datasets`,
);
{
"items": [
{
"name": "dataset_name",
"desc": "Awesome dataset!",
"user": {
"name": "user_name"
}
}
],
"totalPages": 1,
"currentPage": 0
}
owner
stringname
stringlimit
number?offset
number?orderBy
array?select
array?where
Record<string, object>?items
arraytotalPages
numbercurrentPage
numberconst owner = 'some string';
const name = 'some string';
const result = await axios.post(
`https://dibby.ai/api/datasets/${owner}/${name}/search`,
);
{
"items": [
{
"id": "some string",
"values": {
"some string": {
"rowId": "some string",
"column": "some string",
"type": "STRING",
"value": "some string"
}
}
}
],
"totalPages": 1,
"currentPage": 0
}
owner
stringname
stringcolumn
stringname
stringconst owner = 'some string';
const name = 'some string';
const column = 'some string';
const result = await axios.put(
`https://dibby.ai/api/datasets/${owner}/${name}/columns/${column}`,
{"name":"some string"}
);
{}
owner
stringname
stringcolumn
stringconst owner = 'some string';
const name = 'some string';
const column = 'some string';
const result = await axios.delete(
`https://dibby.ai/api/datasets/${owner}/${name}/columns/${column}`,
);
{}
owner
stringname
stringcolumns
arrayconst owner = 'some string';
const name = 'some string';
const result = await axios.get(
`https://dibby.ai/api/datasets/${owner}/${name}/columns`,
);
{
"columns": [
{
"name": "columnName",
"type": "STRING"
}
]
}
owner
stringname
stringname
stringtype
STRING | IMAGE | EMBEDDING | MODEL_OUTPUT | PAIRWISE | NUMBERname
stringtype
STRING | IMAGE | EMBEDDING | MODEL_OUTPUT | PAIRWISE | NUMBERconst owner = 'some string';
const name = 'some string';
const result = await axios.post(
`https://dibby.ai/api/datasets/${owner}/${name}/columns`,
{"name":"columnName","type":"STRING"}
);
{
"name": "columnName",
"type": "STRING"
}
owner
stringname
stringid
stringconst owner = 'some string';
const name = 'some string';
const id = 'some string';
const result = await axios.delete(
`https://dibby.ai/api/datasets/${owner}/${name}/rows/${id}`,
);
{}
owner
stringname
stringid
stringconst owner = 'some string';
const name = 'some string';
const result = await axios.post(
`https://dibby.ai/api/datasets/${owner}/${name}/rows`,
);
{
"id": "some string"
}
owner
stringname
stringconst owner = 'some string';
const name = 'some string';
const result = await axios.put(
`https://dibby.ai/api/datasets/${owner}/${name}/cell`,
{
"rowId": "some string",
"column": "some string",
"type": "STRING",
"value": "some string"
}
{ headers: { 'Content-Type': 'multipart/form-data' }}
);
{}