Skip to content

Versions

Create Skill Version
client.Skills.Versions.New(ctx, skillID, body) (*SkillVersion, error)
POST/skills/{skill_id}/versions
List Skill Versions
client.Skills.Versions.List(ctx, skillID, query) (*CursorPage[SkillVersion], error)
GET/skills/{skill_id}/versions
Get Skill Version
client.Skills.Versions.Get(ctx, skillID, version) (*SkillVersion, error)
GET/skills/{skill_id}/versions/{version}
Delete 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

Get Skill Version Content
client.Skills.Versions.Content.Get(ctx, skillID, version) (*Response, error)
GET/skills/{skill_id}/versions/{version}/content