/api/v1/dataset-items (POST)
const url = 'https://api.endless.zaia.app/api/v1/dataset-items';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"datasetId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","file":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.endless.zaia.app/api/v1/dataset-items \ --header 'Content-Type: application/json' \ --data '{ "datasetId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "file": "example" }'Creates a new dataset item.
Request Bodyrequired
Seção intitulada “Request Bodyrequired”object
The dataset ID associated with the dataset item.
A base64 encoded string with prefix.
Examplegenerated
{ "datasetId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "file": "example"}Responses
Seção intitulada “Responses”The dataset item was created.
object
A UUID v4 string that identifies an entity.
The dataset ID associated with the dataset item.
The internal description of the dataset item.
The file payload or file reference associated with the dataset item.
The display name of the dataset item.
The processing status of the dataset item.
Example
{ "status": "pending"}Unauthorized.
The description of a known exception.
object
The error code.
The error call-to-action.
object
The error feedback.
object
The error message.
The error name.
Example
{ "cta": { "type": "support-contact" }}Plan limit exceeded.
The description of a known exception.
object
The error code.
The error call-to-action.
object
The error feedback.
object
The error message.
The error name.
Example
{ "cta": { "type": "support-contact" }}Dataset not found.
The description of a known exception.
object
The error code.
The error call-to-action.
object
The error feedback.
object
The error message.
The error name.
Example
{ "cta": { "type": "support-contact" }}