v13
latestOpenAPI 3.1.02026-08-033122950.3 KBbuckets
Batch file operations
Accepts NDJSON (newline-delimited JSON) where each line is an addFile, copyFile, or deleteFile instruction. All add/copy operations must come before all delete operations.
JSON-lines payload:
'{"type":"addFile","path":"...","xetHash":"...","mtime":...,"mtimeNanos":...,"contentType":"..."}' +
'{"type":"copyFile","path":"...","xetHash":"...","sourceRepoType":"...","sourceRepoId":"...","mtime":...,"mtimeNanos":...,"contentType":"..."}' +
'{"type":"deleteFile","path":"..."}'
post/api/buckets/{namespace}/{repo}/batch
Path parameters
namespacestring required
repostring required
Response
Batch operation status