To enable the Compliance API, see the setup guide.
Set up the Compliance APIArtifacts
下載 Code Artifact 版本內容
GET/v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id}
Streams the content of one version of an Artifact as the response body, in chunks with no Content-Length. With multi_file_format=zip, a version with more than one file, other than a Claude Doc's or a Claude Sheet's (an Artifact whose artifact_type is claude_docs or claude_sheets), comes back as a ZIP archive of its files.
下載 Code Artifact 內容
GET/v1/compliance/apps/code/artifacts/{artifact_id}/content
Streams an Artifact's current content as the response body, in chunks with no Content-Length.
刪除 Code Artifact
DELETE/v1/compliance/apps/code/artifacts/{artifact_id}
永久刪除 Code Artifact 及其所有版本。這是無法復原的破壞性操作。200 回應表示刪除已啟動且 Artifact 已被認領;內容移除會以非同步方式完成。