Skills
Référence OpenAPI générée pour le domaine « Skills ».
curl -X GET "https://example.com/api/workspaces/string/skill-whitelist"{}Add one skill with workspace whitelist-management rights.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/skill-whitelist" \ -H "Content-Type: application/json" \ -d '{ "skill_dir_name": "string" }'{}Remove one skill with workspace whitelist-management rights.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X DELETE "https://example.com/api/workspaces/string/skill-whitelist" \ -H "Content-Type: application/json" \ -d '{ "skill_dir_name": "string" }'{}Replace the complete whitelist with workspace whitelist-management rights.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://example.com/api/workspaces/string/skill-whitelist" \ -H "Content-Type: application/json" \ -d '{ "skill_dir_names": [ "string" ] }'{}Return the merged system and tenant-pool skill tree visible in the workspace.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/skills"[ {}]Create a custom skill in the tenant pool, whitelisted in this workspace.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/skills" \ -H "Content-Type: application/json" \ -d '{ "content": "string", "name": "string" }'{}Delete files for multiple workspace-scoped skills, skipping invalid directory names.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X DELETE "https://example.com/api/workspaces/string/skills" \ -H "Content-Type: application/json" \ -d '{ "dir_names": [ "string" ] }'{ "deleted": 0}List workspace custom skills with enabled/disabled status.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/skills/custom"[ {}]curl -X PUT "https://example.com/api/workspaces/string/skills/custom/string/disable"{}curl -X PUT "https://example.com/api/workspaces/string/skills/custom/string/enable"{}Import a .skill ZIP archive into the tenant skill pool.
The new skill is written via :func:_write_skill_to_pool so it
shares the exact same scope/whitelist contract as create_skill
and duplicate_skill.
Archives may contain UTF-8 text files only. Conflict hints can rename the imported skill or atomically replace an existing pooled skill.
Path Parameters
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/skills/import" \ -F file="string"{}Delete a pooled skill, returning 409 while it is in use unless forced.
Path Parameters
Query Parameters
falseResponse Body
application/json
application/json
curl -X DELETE "https://example.com/api/workspaces/string/skills/string"{}Copy a workspace-scoped skill into the tenant pool.
Existing pooled files at the same paths are replaced.
Path Parameters
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/skills/string/promote"{}Repoint every workspace whitelist to the replacement, then delete the old pool skill.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/skills/string/replace" \ -H "Content-Type: application/json" \ -d '{ "replacement_dir_name": "string" }'{}Set a custom skill's verification status; requires tenant admin access.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/api/workspaces/string/skills/string/verify" \ -H "Content-Type: application/json" \ -d '{}'{}Resolve a system or tenant-pool skill by directory name or stable ID.
Pool skills outside the effective workspace whitelist require permission to edit workspace skills.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/skills/string"{ "author_name": "string", "author_user_id": "string", "description": "string", "dir_name": "", "files": [ { "path": "string" } ], "id": "string", "is_override": false, "is_system": true, "is_verified": false, "name": "string"}Duplicate a skill (pool or system source) into a new pool skill.
The new skill is written to the tenant pool via
:func:_write_skill_to_pool so it shares the exact same
scope/whitelist contract as create_skill and import_skill.
SKILL.md frontmatter (id, name) is rewritten to the new identifiers.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/skills/string/duplicate" \ -H "Content-Type: application/json" \ -d '{ "new_skill_id": "string" }'{}Export a skill as a .skill ZIP archive (round-trippable with import).
Resolves system skills (with workspace overrides) and tenant-pool skills. Skills living in sibling workspaces are NOT resolved here: a caller authorized on workspace W1 must not be able to download source belonging to W2 just because both workspaces share a tenant.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/skills/string/export"nullPath Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/skills/string/files/string"nullWrite a skill file with permission to edit workspace skills.
Pool skill changes apply tenant-wide and return 409 unless edits shared with other workspaces are explicitly confirmed.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://example.com/api/workspaces/string/skills/string/files/string" \ -H "Content-Type: application/json" \ -d '{}'{}Read the original system version of a skill file (ignoring overrides).
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/skills/string/original-files/string"null