POST /files/compose
Compose multiple files into a single file using zero-copy concatenation. Source files are deleted after successful composition.
Parameters
Agentbox-Sandbox-Id·string· header · requiredIdentifier of the sandbox that receives the request.
Agentbox-Sandbox-Port·integer· header · requiredInternal envd HTTP port exposed through the sandbox proxy.
Default:
49983
Request body
Required: yes
application/json
Schema: ComposeRequest
source_paths·array<string>· requiredOrdered list of source file paths to concatenate
destination·string· requiredDestination file path for the composed file
username·string· optionalUser for setting ownership and resolving relative paths
Responses
200
Files composed successfully
Content-Type: application/json
Schema: EntryInfo
path·string· requiredPath to the file
name·string· requiredName of the file
type·file· requiredType of the file
Allowed values:
filemetadata·object· optionalUser-defined metadata stored as extended attributes on the file.
metadata.*·string· additional property
400
Invalid path
Content-Type: application/json
Schema: Error
message·string· requiredError message
code·integer· requiredError code
401
Invalid user
Content-Type: application/json
Schema: Error
message·string· requiredError message
code·integer· requiredError code
404
File not found
Content-Type: application/json
Schema: Error
message·string· requiredError message
code·integer· requiredError code
500
Internal server error
Content-Type: application/json
Schema: Error
message·string· requiredError message
code·integer· requiredError code
507
Not enough disk space
Content-Type: application/json
Schema: Error
message·string· requiredError message
code·integer· requiredError code