From 2df689703957f8018ddfdc99191d1f68d16dbaa5 Mon Sep 17 00:00:00 2001 From: oeway Date: Thu, 10 Oct 2024 22:05:33 +0000 Subject: [PATCH] deploy: 0875c2b37687117b0c69307341daeb58840a056e --- artifact-manager.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artifact-manager.md b/artifact-manager.md index e11045b3..a5e7f1ba 100644 --- a/artifact-manager.md +++ b/artifact-manager.md @@ -484,7 +484,7 @@ print("Download statistics reset.") The `Artifact Manager` provides an HTTP endpoint for retrieving artifact manifests, data, and download statistics. This is useful for public-facing web applications that need to access datasets, models, or applications. -### Endpoint: `/{workspace}/artifact/{path:path}` +### Endpoint: `/{workspace}/artifacts/{path:path}` - **Workspace**: The workspace in which the artifact is stored. - **Path**: The relative path to the artifact. For private artifacts, it requires proper authentication by passing the user's token in the request headers. @@ -511,7 +511,7 @@ import requests SERVER_URL = "https://hypha.aicell.io" workspace = "my-workspace" -response = requests.get(f"{SERVER_URL}/{workspace}/artifact/collections/dataset-gallery/example-dataset") +response = requests.get(f"{SERVER_URL}/{workspace}/artifacts/collections/dataset-gallery/example-dataset") if response.ok: artifact = response.json() print(artifact["name"]) # Output: Example Dataset