Skip to content

POST /fs/_/copy - Copy file

POST
/v1/sessions/{session_id}/fs/_/copy
session_id
required
string

Session ID (prefixed, e.g., sess_…)

Request to copy a file

object
dst_path
required

Destination path

string
src_path
required

Source path

string

Copied successfully

Complete file with content

object
content

Base64-encoded content for binary files, plain text for text files

string | null
created_at
required
string format: date-time
encoding

Content encoding: “text” or “base64”

string
id
required
string format: uuid
is_directory
required
boolean
is_readonly
required
boolean
name
required
string
path
required
string
session_id
required
string format: uuid
size_bytes
required
integer format: int64
updated_at
required
string format: date-time

Invalid session ID or cannot copy directories

Source not found

Destination exists

Internal server error