uploads
Creates, updates, deletes, gets or lists a uploads
resource.
Overview
Name | uploads |
Type | Resource |
Id | openai.uploads.uploads |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
create_upload | INSERT | data__bytes, data__filename, data__mime_type, data__purpose | |
cancel_upload | EXEC | upload_id | |
complete_upload | EXEC | upload_id, data__part_ids |
INSERT
example
Use the following StackQL query and manifest file to create a new uploads
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO openai.uploads.uploads (
data__filename,
data__purpose,
data__bytes,
data__mime_type
)
SELECT
'{{ filename }}',
'{{ purpose }}',
'{{ bytes }}',
'{{ mime_type }}'
;
- name: uploads
props:
- name: data__bytes
value: string
- name: data__filename
value: string
- name: data__mime_type
value: string
- name: data__purpose
value: string
- name: filename
value: string
- name: purpose
value: string
- name: bytes
value: integer
- name: mime_type
value: string