Skip to main content
POST
Upload a single attachment to a skill

Authorizations

Authorization
string
header
required

Enter your API key (e.g. dai_sk_test_key_001)

Headers

Authorization
string
X-Workspace-Id
string | null

Path Parameters

skill_id
string
required

Cookies

decimal_session
string | null

Body

application/json

Request to create a single skill attachment.

file_path
string
required

Relative path, e.g. 'scripts/validate.py'

directory
string
required

One of: scripts, references, templates, assets

content_text
string
required

File content as text

content_type
string | null

MIME type (auto-detected if omitted)

skill_version_id
string | null

Version scope (null = shared)

Response

Successful Response