Skip to main content
POST
Attach an existing file to an objection

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Path Parameters

id
string<uuid>
required

Body

application/json
fileId
string<uuid>
required
mode
enum<string>
default:attach
Available options:
attach,
copy

Response

Attached file (a new ID when copied).

id
string<uuid>
required

File ID. Read metadata at /files/{id}, download at /files/{id}/download.

name
string
required
canOpen
boolean
required

Whether the caller can read the file content; content endpoints recheck current access.