POST /files/compose
Compose multiple files into a single file using zero-copy concatenation. Source files are deleted after successful composition.
Параметры
Agentbox-Sandbox-Id·string· заголовок · обязательноIdentifier of the sandbox that receives the request.
Agentbox-Sandbox-Port·integer· заголовок · обязательноInternal envd HTTP port exposed through the sandbox proxy.
По умолчанию:
49983
Тело запроса
Обязательно: да
application/json
Схема: ComposeRequest
source_paths·array<string>· обязательноOrdered list of source file paths to concatenate
destination·string· обязательноDestination file path for the composed file
username·string· необязательноUser for setting ownership and resolving relative paths
Ответы
200
Files composed successfully
Content-Type: application/json
Схема: EntryInfo
path·string· обязательноPath to the file
name·string· обязательноName of the file
type·file· обязательноType of the file
Допустимые значения:
filemetadata·object· необязательноUser-defined metadata stored as extended attributes on the file.
metadata.*·string· additional property
400
Invalid path
Content-Type: application/json
Схема: Error
message·string· обязательноError message
code·integer· обязательноError code
401
Invalid user
Content-Type: application/json
Схема: Error
message·string· обязательноError message
code·integer· обязательноError code
404
File not found
Content-Type: application/json
Схема: Error
message·string· обязательноError message
code·integer· обязательноError code
500
Internal server error
Content-Type: application/json
Схема: Error
message·string· обязательноError message
code·integer· обязательноError code
507
Not enough disk space
Content-Type: application/json
Схема: Error
message·string· обязательноError message
code·integer· обязательноError code