Dedup probe for chunks
POST
/v1/datasets/upload/chunks-exist
const url = 'https://example.com/v1/datasets/upload/chunks-exist';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"hashes":["example"],"preferred_blob_ids":["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://example.com/v1/datasets/upload/chunks-exist \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "hashes": [ "example" ], "preferred_blob_ids": [ "example" ] }'Tenant-scoped content-addressed dedup probe.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
ChunksExistBody
object
hashes
required
Array<string>
preferred_blob_ids
required
Array<string>
Example generated
{ "hashes": [ "example" ], "preferred_blob_ids": [ "example" ]}Responses
Section titled “ Responses ”Successful Response
Media type application/json
Example generated
exampleInvalid or missing API key
Media type application/json
ErrorResponse
Standard error response.
object
detail
required
Error message describing what went wrong
string
Example generated
{ "detail": "example"}Validation Error
Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationErrorobject
loc
required
Location
Array<string | integer>
msg
required
Message
string
type
required
Error Type
string
input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}