🌍 Global Mirror — Visit original CN site →
Skip to content
Primary navigation

Versions

Create a new immutable skill version.
client.Skills.Versions.New(ctx, skillID, body) (*SkillVersion, error)
POST/skills/{skill_id}/versions
List skill versions for a skill.
client.Skills.Versions.List(ctx, skillID, query) (*CursorPage[SkillVersion], error)
GET/skills/{skill_id}/versions
Get a specific skill version.
client.Skills.Versions.Get(ctx, skillID, version) (*SkillVersion, error)
GET/skills/{skill_id}/versions/{version}
Delete a skill version.
client.Skills.Versions.Delete(ctx, skillID, version) (*DeletedSkillVersion, error)
DELETE/skills/{skill_id}/versions/{version}
ModelsExpand Collapse
type DeletedSkillVersion struct{…}
ID string
Deleted bool
Object SkillVersionDeleted
Version string

The deleted skill version.

type SkillVersion struct{…}
ID string

Unique identifier for the skill version.

CreatedAt int64

Unix timestamp (seconds) for when the version was created.

Description string

Description of the skill version.

Name string

Name of the skill version.

Object SkillVersion

The object type, which is skill.version.

SkillID string

Identifier of the skill for this version.

Version string

Version number for this skill.

type SkillVersionList struct{…}

A list of items

ID string

Unique identifier for the skill version.

CreatedAt int64

Unix timestamp (seconds) for when the version was created.

Description string

Description of the skill version.

Name string

Name of the skill version.

Object SkillVersion

The object type, which is skill.version.

SkillID string

Identifier of the skill for this version.

Version string

Version number for this skill.

FirstID string

The ID of the first item in the list.

HasMore bool

Whether there are more items available.

LastID string

The ID of the last item in the list.

Object List

The type of object returned, must be list.

VersionsContent

Download a skill version zip bundle.
client.Skills.Versions.Content.Get(ctx, skillID, version) (*Response, error)
GET/skills/{skill_id}/versions/{version}/content