Create Skill Version
curl --request POST \
--url https://api.agentpowers.ai/v1/skills/{slug}/versions \
--header 'Content-Type: application/json' \
--data '
{
"bump": "<string>",
"version": "<string>",
"changelog": "<string>"
}
'import requests
url = "https://api.agentpowers.ai/v1/skills/{slug}/versions"
payload = {
"bump": "<string>",
"version": "<string>",
"changelog": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({bump: '<string>', version: '<string>', changelog: '<string>'})
};
fetch('https://api.agentpowers.ai/v1/skills/{slug}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"slug": "<string>",
"previous_version": "<string>",
"new_version": "<string>",
"status": "<string>",
"message": "<string>",
"version_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}skills
Create Skill Version
Create a new pending version of an existing skill.
Used by the NPX CLI update flow (metadata PATCH, then this, then upload).
Same rules as a version-carrying PATCH: author only, one pending version
per skill (409 SKILL_VERSION_PENDING), an explicit version must be valid
semver greater than the current one (422). Defaults to a patch bump.
Upload the package next with POST /v1/skills/{slug}/upload.
POST
/
v1
/
skills
/
{slug}
/
versions
Create Skill Version
curl --request POST \
--url https://api.agentpowers.ai/v1/skills/{slug}/versions \
--header 'Content-Type: application/json' \
--data '
{
"bump": "<string>",
"version": "<string>",
"changelog": "<string>"
}
'import requests
url = "https://api.agentpowers.ai/v1/skills/{slug}/versions"
payload = {
"bump": "<string>",
"version": "<string>",
"changelog": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({bump: '<string>', version: '<string>', changelog: '<string>'})
};
fetch('https://api.agentpowers.ai/v1/skills/{slug}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"slug": "<string>",
"previous_version": "<string>",
"new_version": "<string>",
"status": "<string>",
"message": "<string>",
"version_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
Body
application/json
Body of POST /v1/skills/{slug}/versions (the NPX CLI update flow).
Creates a pending version only. Listing metadata sent here is ignored;
use PATCH /v1/skills/{slug}. With neither bump nor version
the version is bumped by patch.
Was this page helpful?