Publish Version
POST
https://api.youvico.com/api/skills/:id/versions- Rate Limit
- Tier 3
- Scope
- skills:write
Publishes a new skill version.
Only skills whose source is WORKSPACE can be changed.
Example
curl -X POST 'https://api.youvico.com/api/skills/SK1234567890ABCD/versions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{ "content": "# Review Helper\n\nCheck revisions.", "note": "Initial public draft", "isDefault": true }'
{
"data": {
"id": "SV1234567890ABCD"
}
}
Request
curl -X POST 'https://api.youvico.com/api/skills/SK1234567890ABCD/versions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"content": "# Review Helper\n\nCheck revisions.",
"note": "Initial public draft",
"isDefault": true
}'
Response201 Created
{
"data": {
"id": "SV1234567890ABCD"
}
}
Request
Path
idstringrequiredSkill ID
Body
contentstringrequiredMarkdown content
notestring1-1024 characters
Version note
Example: Initial public draft
isDefaultbooleanWhether to make it the default version
Example: true
Response
Returns 201 Created.
dataobjectCreated version
data.idstringID of the created version
Example: SV1234567890ABCD