/api/v1/dataset-items/{id} (PATCH)
const url = 'https://api.endless.zaia.app/api/v1/dataset-items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"description":"example","file":"example","name":"example","status":"pending","content":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.endless.zaia.app/api/v1/dataset-items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --data '{ "description": "example", "file": "example", "name": "example", "status": "pending", "content": "example" }'Updates a dataset item.
Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”A UUID v4 string that identifies an entity.
A UUID v4 string that identifies an entity.
Request Bodyrequired
Seção intitulada “Request Bodyrequired”object
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.
Responses
Seção intitulada “Responses”The dataset item was updated.
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"}Invalid dataset item configuration.
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" }}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" }}The dataset item was 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" }}