POST /openapi/memorylake/api/v3/skills/{id}/versions
Publishes a new version of a skill from a package you have uploaded with Request Package Upload. The new version becomes the latest version and goes through security review; the response comes back with security_status set to pending.
Until the new version passes review, agents whose reference follows the latest version cannot be created or given new versions with this skill. Agent versions pinned to an older version number are unaffected. See Referencing a Skill From an Agent.
Permission required:skill:modify
Path Parameters
string
required
Skill ID
Request Body
object
required
The uploaded package.
Show Package reference
string
required
The s3_uri returned by Request Package Upload, unchanged. Upload the archive to its upload_url first.
string
Release notes for this version.
curl -X POST 'https://app.memorylake.ai/openapi/memorylake/api/v3/skills/skill-2b0f5f9f4ea54767822f51f4940c8f24/versions' \ -H 'Authorization: Bearer sk_xxxxxx' \ -H 'Content-Type: application/json' \ -d '{ "package_ref": { "s3_uri": "s3://example-bucket/skill-packages/9d4e7a1b2c3f4e5d8a6b0c1d2e3f4a5b.zip" }, "changelog": "Add analyst consensus to the summary table" }'
Response
object
Show Skill version
string
Skill ID
integer
Number assigned to the new version
string
Release notes for this version
string
Security review state of this version. pending right after publishing.
string
When the version was published
Errors
Status
Error code
When
400
INVALID_ARGUMENT
package_ref.s3_uri was not issued by Request Package Upload, nothing was uploaded to it, or the package is empty or larger than 10 MiB