Skip to main content

skills

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

Overview

Nameskills
TypeResource
Idopenai.skills.skills

Fields

The following fields are returned by SELECT queries:

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectskill_idopenai-organization, openai-project
listselectlimit, order, after, openai-organization, openai-project
updateupdateskill_id, default_versionopenai-organization, openai-project
deletedeleteskill_idopenai-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 to delete.
afterstringIdentifier for the last item from the previous pagination request
limitintegerNumber of items 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 timestamp. Use asc for ascending order or desc for descending order.

SELECT examples

Success

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

UPDATE examples

No description available.

UPDATE openai.skills.skills
SET
default_version = '{{ default_version }}'
WHERE
skill_id = '{{ skill_id }}' --required
AND default_version = '{{ default_version }}' --required
AND "openai-organization" = '{{ openai-organization}}'
AND "openai-project" = '{{ openai-project}}'
RETURNING
id,
name,
created_at,
default_version,
description,
latest_version,
object;

DELETE examples

No description available.

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