Upload a skill from a Markdown file

Upload a skill as multipart/form-data with one file part: a UTF-8 .md file in SKILL.md form (YAML frontmatter with name and description, then a Markdown body). A project may have at most 200 skills; exceeding the limit returns 400 with error.message e.g. "Max skill limit of 200 reached.".

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
query Parameters
overwrite
boolean (Overwrite)
Default: false

If false (default), returns 409 Conflict when the uploaded skill is referenced by an agent. If true, the skill is uploaded regardless.

externalId
required
string (Externalid) [ 1 .. 128 ] characters ^[^\x00]{1,128}$

CDF external ID for the skill's SKILL.md file. Leading and trailing whitespace is trimmed before validation. Must not start with the reserved prefix 'cdf-'. Must be between 1 and 128 characters inclusive, with no null character (U+0000).

Request Body schema: multipart/form-data
required
file
required
string <application/octet-stream> (File)

UTF-8 .md file in SKILL.md form: YAML frontmatter with name and description, then a Markdown body (text/markdown).

Responses
200

Successful Response

400

The response for a failed request.

409

Overwrite is false and the uploaded skill is referenced by an agent (see overwrite).

post/ai/skills/upload
Request samples
Response samples
application/json
{
  • "items": [
    • {
      }
    ]
}