Register locally stored items in a single operation
Changed onRegister and upload locally stored files in a single operation using base64 encoding.
Request
- Base URLhttps://darwin.v7labs.com
- URLhttps://darwin.v7labs.com/api/v2/teams/{team_slug}/items/direct_upload
- Auth
- HTTP bearer
- or API key in header Authorization
Path parameters
Team's sluggified name
Request body
Example request
{
"dataset_slug": "my-dataset",
"items": [
{
"file_content": "dGhpcyBpcyBhIHRlc3QgYmFzZTY0IHN0cmluZwo=",
"name": "some-item",
"tags": [
"tag_class_name1",
"tag_class_name2"
]
}
]
}Response
DatasetsV2.ItemRegistration.RegistrationResponse
Example response
{
"blocked_items": [
{
"id": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
"name": "some-item",
"slots": [
{
"file_name": "my_image.jpg",
"size_bytes": 500,
"slot_name": "0"
}
]
}
],
"items": [
{
"id": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
"name": "some-item",
"slots": [
{
"file_name": "my_image.jpg",
"size_bytes": 500,
"slot_name": "0",
"upload_id": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781"
}
]
}
]
}Changes
- warning
added the new
DUPLICATE_REJECT_REASONenum value to the/response property for the response status - warning
added the new
DUPLICATE_REJECT_REASONenum value to the/response property for the response status - warning
added the new
EXTERNAL_STORAGE_ACCESS_FAILEDenum value to the/response property for the response status - warning
added the new
EXTERNAL_STORAGE_ACCESS_FAILEDenum value to the/response property for the response status - warning
added the new
INVALID_REJECT_REASONenum value to the/response property for the response status - warning
added the new
INVALID_REJECT_REASONenum value to the/response property for the response status - warning
added the new
INVALID_REJECT_REASONSenum value to the/response property for the response status - warning
added the new
INVALID_REJECT_REASONSenum value to the/response property for the response status - warning
added the new
REJECT_REASON_REQUIREDenum value to the/response property for the response status - warning
added the new
REJECT_REASON_REQUIREDenum value to the/response property for the response status - warning
added the new
REPORT_TOO_LARGEenum value to the/response property for the response status - warning
added the new
REPORT_TOO_LARGEenum value to the/response property for the response status - warning
added the new
TOO_MANY_ACTIVE_REPORT_JOBSenum value to the/response property for the response status - warning
added the new
TOO_MANY_ACTIVE_REPORT_JOBSenum value to the/response property for the response status - warning
added the new
TOO_MANY_PENDING_AI_REVIEW_BLUEPRINTSenum value to the/response property for the response status - warning
added the new
TOO_MANY_PENDING_AI_REVIEW_BLUEPRINTSenum value to the/response property for the response status - warning
added the new
TOO_MANY_PENDING_EXPORTSenum value to the/response property for the response status - warning
added the new
TOO_MANY_PENDING_EXPORTSenum value to the/response property for the response status - warning
added the new
TOO_MANY_REJECT_REASONSenum value to the/response property for the response status - warning
added the new
TOO_MANY_REJECT_REASONSenum value to the/response property for the response status
- warning