Skip to main content

versions

Creates, updates, deletes, gets or lists a versions resource.

Overview

Nameversions
TypeResource
Idopenai.skills.versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique identifier for the skill version.
namestringName of the skill version.
skill_idstringIdentifier of the skill for this version.
created_atinteger (unixtime)Unix timestamp (seconds) for when the version was created.
descriptionstringDescription of the skill version.
objectstringThe object type, which is skill.version. (skill.version) (default: skill.version)
versionstringVersion number for this skill.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectskill_id, versionopenai-organization, openai-project
listselectskill_idlimit, order, after, openai-organization, openai-project
deletedeleteskill_id, versionopenai-organization, openai-project

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
skill_idstringThe identifier of the skill.
versionstringThe skill version number.
afterstringThe skill version ID to start after.
limitintegerNumber of versions to retrieve. Automatically applied from a SQL LIMIT clause - SELECT ... LIMIT 10 sends limit=10 on the wire. Setting it explicitly in a WHERE clause is not required.
openai-organizationstringOptionally scope the request to a specific organization (overrides the default associated with the API key). Addressable in SQL as openai_organization.
openai-projectstringOptionally scope the request to a specific project (overrides the default associated with the API key). Addressable in SQL as openai_project.
orderstringSort order of results by version number.

SELECT examples

Success

SELECT
id,
name,
skill_id,
created_at,
description,
object,
version
FROM openai.skills.versions
WHERE skill_id = '{{ skill_id }}' -- required
AND version = '{{ version }}' -- required
AND "openai-organization" = '{{ openai-organization }}'
AND "openai-project" = '{{ openai-project }}'
;

DELETE examples

No description available.

DELETE FROM openai.skills.versions
WHERE skill_id = '{{ skill_id }}' --required
AND version = '{{ version }}' --required
AND "openai-organization" = '{{ openai-organization }}'
AND "openai-project" = '{{ openai-project }}'
;