For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Copy to LLMGithubGo to App
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
    • Overview
  • Python SDK
    • Reference
    • REST API Client
  • Typescript SDK
    • Overview
    • Opik TS
    • Prompts
    • Opik Query Language (OQL)
  • Rest API
    • Overview
        • GETAttachments list for entity
        • POSTComplete multipart attachment upload
        • POSTDelete attachments
        • GETDownload attachment from MinIO
        • POSTStart multipart attachment upload
        • PUTUpload attachment to MinIO
LogoLogo
Copy to LLMGithubGo to App
Rest APIAPI ReferenceAttachments

Delete attachments

POST
/v1/private/attachment/delete
POST
/api/v1/private/attachment/delete
$curl -X POST http://localhost:5173/api/v1/private/attachment/delete \
> -H "Content-Type: application/json" \
> -d '{
> "file_name": "string",
> "entity_type": "trace",
> "entity_id": "string",
> "file_size": 1,
> "upload_id": "string",
> "uploaded_file_parts": [
> {
> "e_tag": "string",
> "part_number": 1
> }
> ]
>}'
Delete attachments
Was this page helpful?
Previous

Download attachment from MinIO

Next
Built with

Request

This endpoint expects an object.
file_namestringRequired>=1 character
entity_typeenumRequired
Allowed values:
entity_idstringRequiredformat: "uuid"
file_sizelongRequired
upload_idstringRequired>=1 character
uploaded_file_partslist of objectsRequired
project_namestringOptionalformat: "(?s)^\s*(\S.*\S|\S)\s*$"
If null, the default project is used
mime_typestringOptional

Errors

401
Unauthorized Error
403
Forbidden Error