Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idopenai.projects.projects

Fields

NameDatatypeDescription
idstringThe identifier, which can be referenced in API endpoints
namestringThe name of the project. This appears in reporting.
archived_atintegerThe Unix timestamp (in seconds) of when the project was archived or null.
created_atintegerThe Unix timestamp (in seconds) of when the project was created.
objectstringThe object type, which is always organization.project
statusstringactive or archived

Methods

NameAccessible byRequired ParamsDescription
list_projectsSELECT
retrieve_projectSELECTproject_id
create_projectINSERTdata__name
modify_projectUPDATEproject_id, data__name
archive_projectEXECproject_id

SELECT examples

SELECT
id,
name,
archived_at,
created_at,
object,
status
FROM openai.projects.projects
;

INSERT example

Use the following StackQL query and manifest file to create a new projects resource.

/*+ create */
INSERT INTO openai.projects.projects (
data__name
)
SELECT
'{{ name }}'
;

UPDATE example

Updates a projects resource.

/*+ update */
UPDATE openai.projects.projects
SET
name = '{{ name }}'
WHERE
project_id = '{{ project_id }}'
AND data__name = '{{ data__name }}';