Skip to main content
POST
Attach an artifact to a task, session, message or any target

Body

application/json
id
string
required

Artifact id

targetId
string
required

Target id

targetType
string
required

Target type, e.g. task, session, message, project

metadata
string

Link metadata JSON object

relation
string

Relation name (default: related)

Response

Success — no @Returns schema declared; payload shape is loose.

The response is of type object.