Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 38 additions & 8 deletions latest/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4053,12 +4053,12 @@ paths:
type: string
tags:
- Runs
"/api/v1/organizations/{organization_id}/files:upload":
"/api/v1/organizations/{organization_id}/workspaces/{workspace_id}/files:upload":
post:
summary: Upload File
description: |-
The lifetime of the file is the lifetime of the organization, ie,
if the organization is deleted, its file will also be deleted.
Upload a file scoped to a specific workspace. The file's lifetime is tied
to the organization. This is the preferred endpoint for new file uploads.
operationId: UploadFile
responses:
"200":
Expand Down Expand Up @@ -4089,6 +4089,11 @@ paths:
required: true
schema:
type: string
- name: workspace_id
in: path
required: true
schema:
type: string
requestBody:
content:
multipart/form-data:
Expand Down Expand Up @@ -4116,7 +4121,7 @@ paths:
type: object
description: File upload data
required: true
"/api/v1/organizations/{organization_id}/files/{file}:download":
"/api/v1/organizations/{organization_id}/workspaces/{workspace_id}/files/{file}:download":
get:
summary: Download File
operationId: DownloadFile
Expand Down Expand Up @@ -4153,14 +4158,19 @@ paths:
required: true
schema:
type: string
- name: workspace_id
in: path
required: true
schema:
type: string
- name: file
in: path
required: true
schema:
type: string
tags:
- Files
"/api/v1/organizations/{organization_id}/files/{file}/metadata":
"/api/v1/organizations/{organization_id}/workspaces/{workspace_id}/files/{file}/metadata":
get:
summary: Get File Metadata
operationId: GetFileMetadata
Expand All @@ -4183,14 +4193,19 @@ paths:
required: true
schema:
type: string
- name: workspace_id
in: path
required: true
schema:
type: string
- name: file
in: path
required: true
schema:
type: string
tags:
- Files
"/api/v1/organizations/{organization_id}/files/{file}":
"/api/v1/organizations/{organization_id}/workspaces/{workspace_id}/files/{file}":
delete:
summary: Delete File
operationId: DeleteFile
Expand All @@ -4214,14 +4229,19 @@ paths:
required: true
schema:
type: string
- name: workspace_id
in: path
required: true
schema:
type: string
- name: file
in: path
required: true
schema:
type: string
tags:
- Files
"/api/v1/organizations/{organization_id}/files:generateUploadUrl":
"/api/v1/organizations/{organization_id}/workspaces/{workspace_id}/files:generateUploadUrl":
post:
summary: Generate Upload Url
operationId: GenerateUploadUrl
Expand All @@ -4244,6 +4264,11 @@ paths:
required: true
schema:
type: string
- name: workspace_id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
Expand All @@ -4252,7 +4277,7 @@ paths:
required: true
tags:
- Files
"/api/v1/organizations/{organization_id}/files/{file}:generateDownloadUrl":
"/api/v1/organizations/{organization_id}/workspaces/{workspace_id}/files/{file}:generateDownloadUrl":
post:
summary: Generate Download Url
operationId: GenerateDownloadUrl
Expand All @@ -4275,6 +4300,11 @@ paths:
required: true
schema:
type: string
- name: workspace_id
in: path
required: true
schema:
type: string
- name: file
in: path
required: true
Expand Down
Loading