Skip to content

File-level content-hash dedup probe

POST
/v1/datasets/upload/lookup
curl --request POST \
--url https://example.com/v1/datasets/upload/lookup \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "path": "example", "content_hash": "example", "with_manifest": false }'

If the exact bytes already exist in the caller’s repo, the file is done in one round-trip (no chunk/probe/commit). Returns {file_id} (empty on miss).

x-api-key
string | null
Media type application/json
LookupBody
object
name
required
string
path
required
string
content_hash
required
string
with_manifest
boolean

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationError
object
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": {}
}
]
}