Skip to main content
PUT
Create or replace a skill file

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

spaceId
required

ID of the space the skill belongs to.

Required string length: 2 - 6
skillId
string<uuid>
required

Unique ID of the skill.

path
string
required

Relative path of the file within the skill folder. Text files only — the extension must be one of: .md, .py, .txt, .json, .yaml, .yml, .csv, .html, .svg.

Required string length: 1 - 512
Pattern: ^[a-zA-Z0-9_\-./]+$

Body

application/json
content
string
required

Full text content of the file (UTF-8). The provided content fully replaces the file.

Response

File written successfully.

path
string
required

Relative path of the file within the skill folder.

size
number
required

File size in bytes.

mimeType
string
required

MIME type derived from the file extension.