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
artifactId
string<uuid>

Artifact ID of the file to attach, as GET /artifacts/{artifactId} reads it. Required unless the deprecated fileId is given.

fileId
string<uuid>
deprecated

Deprecated alias of artifactId; send that instead. Deprecated on 2026-11-23; kept until at least 2027-03-01.

mode
enum<string>
default:attach
Available options:
attach,
copy

Response

Attached file (a new ID when copied).

id
string<uuid>
required

Artifact ID. Read metadata at /artifacts/{artifactId}, download at /artifacts/{artifactId}/download.

name
string
required
canOpen
boolean
required

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