Skip to content
Draft
Show file tree
Hide file tree
Changes from 3 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
1,263 changes: 1,263 additions & 0 deletions platform-api-docs/scripts/specs/base-1.66-to-1.85-changes-overlay.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# ===== DATA-LINKS OPERATIONS - SUMMARIES & DESCRIPTIONS =====

# GET /data-links/cache/refresh - Refresh data-link cache
- target: "$.paths./data-links/cache/refresh.get"
update:
summary: "Refresh data-link cache"
description: "Refreshes the data-link cache for the given `workspaceId` or `credentialsId`. Forces immediate re-discovery of available cloud storage resources."

# GET /data-links/ - List data-links
- target: "$.paths./data-links/.get"
update:
summary: "List data-links"
description: "Retrieves all available data-links in a user context. Append `?workspaceId={your-workspace-id}` to retrieve data-links in a workspace context. Results can be filtered by credentials, provider, region, search query, and visibility."

# GET /data-links/{dataLinkId}/browse{/path} - Explore data-link path
- target: "$.paths./data-links/{dataLinkId}/browse{/path}.get"
update:
summary: "Explore data-link path"
description: "Retrieves the content of the data-link associated with the given `dataLinkId`, at the given `path`. Returns a paginated list of files and folders at the specified location."

# GET /data-links/{dataLinkId}/browse-tree - Explore data-link tree
- target: "$.paths./data-links/{dataLinkId}/browse-tree.get"
update:
summary: "Explore data-link tree"
description: "Retrieves a list of all files in the data-link associated with the given `dataLinkId`, including files in sub-paths. Useful for retrieving complete directory structures."

# GET /data-links/{dataLinkId} - Describe data-link
- target: "$.paths./data-links/{dataLinkId}.get"
update:
summary: "Describe data-link"
description: "Retrieves the details of the data-link associated with the given `dataLinkId`, including provider information, credentials, and access status."

# POST /data-links/hide - Hide data-links
- target: "$.paths./data-links/hide.post"
update:
summary: "Hide data-links"
description: "Hides the given data-links from the data-links list view. Hidden data-links remain accessible but are filtered from default list views."

# POST /data-links/show - Show data-links
- target: "$.paths./data-links/show.post"
update:
summary: "Show data-links"
description: "Shows previously hidden data-links in the data-links list view."

# POST /data-links/ - Create data-link
- target: "$.paths./data-links/.post"
update:
summary: "Create data-link"
description: "Creates a new data-link in a user context. Append `?workspaceId=` to create the data-link in a workspace context. Data-links can be public (no credentials required) or private (credentials-based access)."

# PUT /data-links/{dataLinkId} - Update data-link
- target: "$.paths./data-links/{dataLinkId}.put"
update:
summary: "Update data-link"
description: "Updates the data-link associated with the given `dataLinkId`. Allows modification of name, description, and associated credentials."

# DELETE /data-links/{dataLinkId} - Delete data-link
- target: "$.paths./data-links/{dataLinkId}.delete"
update:
summary: "Delete data-link"
description: "Deletes the data-link associated with the given `dataLinkId`. The underlying cloud storage resource is not affected."

# GET /data-links/{dataLinkId}/download/{+filePath} - Download data-link file
- target: "$.paths./data-links/{dataLinkId}/download/{+filePath}.get"
update:
summary: "Download data-link file"
description: "Downloads the content at the given `filePath` in the data-link associated with the given `dataLinkId`. Returns the file content directly as a streamed response."

# GET /data-links/{dataLinkId}/generate-download-url - Generate download URL
- target: "$.paths./data-links/{dataLinkId}/generate-download-url.get"
update:
summary: "Generate download URL"
description: "Returns a pre-signed URL to download files from the data-link associated with the given `dataLinkId`. The URL can be used for direct downloads or preview purposes."

# GET /data-links/{dataLinkId}/script/download - Generate download script
- target: "$.paths./data-links/{dataLinkId}/script/download.get"
update:
summary: "Generate download script"
description: "Creates a script to download files from the data-link associated with the given `dataLinkId`. Append `?dirs` or `?files` to specify a list of files or paths to download within the data-link."

# POST /data-links/{dataLinkId}/upload{/dirPath} - Generate upload URL
- target: "$.paths./data-links/{dataLinkId}/upload{/dirPath}.post"
update:
summary: "Generate upload URL"
description: "Creates a URL to upload files to the data-link associated with the given `dataLinkId`, specifying a file path (`dirPath`). For AWS S3 data-links, an additional follow-up request must be sent after your file upload has completed (or encountered an error) to finalize the upload - see the `/upload/finish` endpoint."

# POST /data-links/{dataLinkId}/upload/finish{/dirPath} - Finish upload
- target: "$.paths./data-links/{dataLinkId}/upload/finish{/dirPath}.post"
update:
summary: "Finish upload"
description: "Finalizes upload of a data-link file, specifying a file path (`dirPath`). This endpoint is required for AWS S3 data-links to complete a successful file upload, or abort an upload if an error was encountered while uploading a file using an upload URL from the `/upload` endpoint."

# DELETE /data-links/{dataLinkId}/content - Delete data-link content
- target: "$.paths./data-links/{dataLinkId}/content.delete"
update:
summary: "Delete data-link content"
description: "Deletes the content of the data-link associated with the given `dataLinkId`. The data-link itself is preserved, but files and directories within it are removed."
265 changes: 265 additions & 0 deletions platform-api-docs/scripts/specs/data-links-params-overlay-1.85.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
# ===== DATA-LINKS PARAMETERS - PATH, QUERY, AND REQUEST BODY =====

# ---- PATH PARAMETERS ----

# dataLinkId - used across multiple endpoints
- target: "$.paths./data-links/{dataLinkId}/browse{/path}.get.parameters[?(@.name=='dataLinkId')]"
update:
description: "Data-link string identifier."

- target: "$.paths./data-links/{dataLinkId}/browse-tree.get.parameters[?(@.name=='dataLinkId')]"
update:
description: "Data-link string identifier."

- target: "$.paths./data-links/{dataLinkId}.get.parameters[?(@.name=='dataLinkId')]"
update:
description: "Data-link string identifier."

- target: "$.paths./data-links/{dataLinkId}.put.parameters[?(@.name=='dataLinkId')]"
update:
description: "Data-link string identifier."

- target: "$.paths./data-links/{dataLinkId}.delete.parameters[?(@.name=='dataLinkId')]"
update:
description: "Data-link string identifier."

- target: "$.paths./data-links/{dataLinkId}/download/{+filePath}.get.parameters[?(@.name=='dataLinkId')]"
update:
description: "Data-link string identifier."

- target: "$.paths./data-links/{dataLinkId}/generate-download-url.get.parameters[?(@.name=='dataLinkId')]"
update:
description: "Data-link string identifier."

- target: "$.paths./data-links/{dataLinkId}/script/download.get.parameters[?(@.name=='dataLinkId')]"
update:
description: "Data-link string identifier."

- target: "$.paths./data-links/{dataLinkId}/upload{/dirPath}.post.parameters[?(@.name=='dataLinkId')]"
update:
description: "Data-link string identifier."

- target: "$.paths./data-links/{dataLinkId}/upload/finish{/dirPath}.post.parameters[?(@.name=='dataLinkId')]"
update:
description: "Data-link string identifier."

- target: "$.paths./data-links/{dataLinkId}/content.delete.parameters[?(@.name=='dataLinkId')]"
update:
description: "Data-link string identifier."

# path parameter
- target: "$.paths./data-links/{dataLinkId}/browse{/path}.get.parameters[?(@.name=='path')]"
update:
description: "Content path within the data-link. Use forward slashes to navigate directory structures (e.g., `folder/subfolder`)."

# filePath parameter
- target: "$.paths./data-links/{dataLinkId}/download/{+filePath}.get.parameters[?(@.name=='filePath')]"
update:
description: "File path to download within the data-link (e.g., `folder/subfolder/object`)."

- target: "$.paths./data-links/{dataLinkId}/generate-download-url.get.parameters[?(@.name=='filePath')]"
update:
description: "File path to download within the data-link (e.g., `folder/subfolder/object`)."

# dirPath parameter
- target: "$.paths./data-links/{dataLinkId}/upload{/dirPath}.post.parameters[?(@.name=='dirPath')]"
update:
description: "Path to the destination directory within the data-link where the file will be uploaded (e.g., `folder/subfolder`)."

- target: "$.paths./data-links/{dataLinkId}/upload/finish{/dirPath}.post.parameters[?(@.name=='dirPath')]"
update:
description: "Path to the destination directory within the data-link where the file was uploaded (e.g., `folder/subfolder`)."

# ---- QUERY PARAMETERS - workspaceId ----

- target: "$.paths./data-links/cache/refresh.get.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. If omitted, refreshes cache in a user context."

- target: "$.paths./data-links/.get.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. If omitted, lists data-links in a user context."

- target: "$.paths./data-links/{dataLinkId}/browse{/path}.get.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

- target: "$.paths./data-links/{dataLinkId}/browse-tree.get.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

- target: "$.paths./data-links/{dataLinkId}.get.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

- target: "$.paths./data-links/hide.post.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

- target: "$.paths./data-links/show.post.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

- target: "$.paths./data-links/.post.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. If omitted, creates data-link in a user context."

- target: "$.paths./data-links/{dataLinkId}.put.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

- target: "$.paths./data-links/{dataLinkId}.delete.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

- target: "$.paths./data-links/{dataLinkId}/download/{+filePath}.get.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

- target: "$.paths./data-links/{dataLinkId}/generate-download-url.get.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

- target: "$.paths./data-links/{dataLinkId}/script/download.get.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

- target: "$.paths./data-links/{dataLinkId}/upload{/dirPath}.post.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

- target: "$.paths./data-links/{dataLinkId}/upload/finish{/dirPath}.post.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

- target: "$.paths./data-links/{dataLinkId}/content.delete.parameters[?(@.name=='workspaceId')]"
update:
description: "Workspace numeric identifier. Optional."

# ---- QUERY PARAMETERS - credentialsId ----

- target: "$.paths./data-links/cache/refresh.get.parameters[?(@.name=='credentialsId')]"
update:
description: "Credentials string identifier. Filters cache refresh to data-links accessible with the specified credentials."

- target: "$.paths./data-links/.get.parameters[?(@.name=='credentialsId')]"
update:
description: "Credentials string identifier. Filters results to data-links accessible with the specified credentials."

- target: "$.paths./data-links/{dataLinkId}/browse{/path}.get.parameters[?(@.name=='credentialsId')]"
update:
description: "Credentials string identifier. Required for accessing private data-links."

- target: "$.paths./data-links/{dataLinkId}/browse-tree.get.parameters[?(@.name=='credentialsId')]"
update:
description: "Credentials string identifier. Required for accessing private data-links."

- target: "$.paths./data-links/{dataLinkId}.get.parameters[?(@.name=='credentialsId')]"
update:
description: "Credentials string identifier. Required for accessing private data-links."

- target: "$.paths./data-links/{dataLinkId}/download/{+filePath}.get.parameters[?(@.name=='credentialsId')]"
update:
description: "Credentials string identifier. Required for downloading from private data-links."

- target: "$.paths./data-links/{dataLinkId}/generate-download-url.get.parameters[?(@.name=='credentialsId')]"
update:
description: "Credentials string identifier. Required for generating download URLs for private data-links."

- target: "$.paths./data-links/{dataLinkId}/script/download.get.parameters[?(@.name=='credentialsId')]"
update:
description: "Credentials string identifier. Required for generating download scripts for private data-links."

- target: "$.paths./data-links/{dataLinkId}/upload{/dirPath}.post.parameters[?(@.name=='credentialsId')]"
update:
description: "Credentials string identifier. Required for uploading to private data-links."

- target: "$.paths./data-links/{dataLinkId}/upload/finish{/dirPath}.post.parameters[?(@.name=='credentialsId')]"
update:
description: "Credentials string identifier. Required for finalizing uploads to private data-links."

- target: "$.paths./data-links/{dataLinkId}/content.delete.parameters[?(@.name=='credentialsId')]"
update:
description: "Credentials string identifier. Required for deleting content from private data-links."

# ---- SEARCH AND FILTER PARAMETERS ----

- target: "$.paths./data-links/.get.parameters[?(@.name=='search')]"
update:
description: "Free text search criteria. Supports data-link `name`, `region`, and `provider`."

- target: "$.paths./data-links/{dataLinkId}/browse{/path}.get.parameters[?(@.name=='search')]"
update:
description: "Prefix search of data-link content. Filters files and folders by `name` prefix (e.g., `search=my-file` matches `my-file.txt`, `my-file-2.csv`)."

# ---- PAGINATION PARAMETERS ----

- target: "$.paths./data-links/.get.parameters[?(@.name=='max')]"
update:
description: "Maximum number of results to return. Default: `25`, maximum: `100`."

- target: "$.paths./data-links/.get.parameters[?(@.name=='offset')]"
update:
description: "Number of results to skip for pagination. Default: `0`."

- target: "$.paths./data-links/{dataLinkId}/browse{/path}.get.parameters[?(@.name=='pageSize')]"
update:
description: "Number of items to return per page. If omitted, a default maximum value is returned. Maximum: `100`."

- target: "$.paths./data-links/{dataLinkId}/browse{/path}.get.parameters[?(@.name=='nextPageToken')]"
update:
description: "Token used to fetch the next page of items. Obtained from the previous response."

# ---- VISIBILITY PARAMETERS ----

- target: "$.paths./data-links/.get.parameters[?(@.name=='visibility')]"
update:
description: "Visibility filter. Supports `visible` (show only visible data-links), `hidden` (show only hidden data-links), or `all` (show all data-links)."

# ---- DOWNLOAD/UPLOAD PARAMETERS ----

- target: "$.paths./data-links/{dataLinkId}/generate-download-url.get.parameters[?(@.name=='preview')]"
update:
description: "If `true`, generates a URL for preview purposes. If `false`, generates a URL for direct download. Default: `false`."

- target: "$.paths./data-links/{dataLinkId}/script/download.get.parameters[?(@.name=='dirs')]"
update:
description: "List of directory paths to include in the download script."

- target: "$.paths./data-links/{dataLinkId}/script/download.get.parameters[?(@.name=='files')]"
update:
description: "List of file paths to include in the download script."

- target: "$.paths./data-links/{dataLinkId}/browse-tree.get.parameters[?(@.name=='paths')]"
update:
description: "List of paths to explore. Returns all files within the specified paths, including sub-paths."

# ---- REQUEST BODY DESCRIPTIONS ----

- target: "$.paths./data-links/hide.post.requestBody"
update:
description: "Data-link IDs to hide."

- target: "$.paths./data-links/show.post.requestBody"
update:
description: "Data-link IDs to show."

- target: "$.paths./data-links/.post.requestBody"
update:
description: "Data-link creation request."

- target: "$.paths./data-links/{dataLinkId}.put.requestBody"
update:
description: "Data-link update request."

- target: "$.paths./data-links/{dataLinkId}/upload{/dirPath}.post.requestBody"
update:
description: "Multi-part upload request containing file metadata (name, size, content type)."

- target: "$.paths./data-links/{dataLinkId}/upload/finish{/dirPath}.post.requestBody"
update:
description: "Finish multi-part upload request for AWS S3 data-links, containing upload ID, file name, part tags, and error status."

- target: "$.paths./data-links/{dataLinkId}/content.delete.requestBody"
update:
description: "Data-link content deletion request specifying files and directories to delete."
Loading