Skip to main content

uploads

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

Overview

Nameuploads
TypeResource
Idopenai.uploads.uploads

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
create_uploadINSERTdata__bytes, data__filename, data__mime_type, data__purpose
cancel_uploadEXECupload_id
complete_uploadEXECupload_id, data__part_ids

INSERT example

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

/*+ create */
INSERT INTO openai.uploads.uploads (
data__filename,
data__purpose,
data__bytes,
data__mime_type
)
SELECT
'{{ filename }}',
'{{ purpose }}',
'{{ bytes }}',
'{{ mime_type }}'
;