---
updatedAt: 2025-03-06T23:35:33.000Z
agentTools:
  projectIndex: https://docs.tenyks.ai/llms.txt
---

# Upload Dataset Annotations

This endpoint uploads the annotations of a dataset.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "API Endpoints Azure 2.0",
    "version": "1.0.1"
  },
  "servers": [
    {
      "url": "https://{base_url}.tenyks.ai",
      "description": "The Tenyks API",
      "variables": {
        "base_url": {
          "enum": [
            "dashboard",
            "sandbox"
          ],
          "default": "dashboard"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Data Upload Azure"
    }
  ],
  "paths": {
    "/api/workspaces/tenyks/datasets/{dataset_key}/images/annotations": {
      "put": {
        "tags": [
          "Data Upload Azure"
        ],
        "summary": "Upload Dataset Annotations",
        "description": "This endpoint uploads the annotations of a dataset.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DatasetAnnotationsPayloadAzure"
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "dataset_key",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The unique key assigned to your dataset when it was created.",
            "example": "face_detection"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DatasetAnnotationsPayloadAzure": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "azure"
            ],
            "default": "azure"
          },
          "azure_uri": {
            "type": "string",
            "example": "https://azure_storage_account.blob.core.windows.net/tenyks-datasets/kitti/annotations.json"
          },
          "credentials": {
            "$ref": "#/components/schemas/AzureCredentials"
          }
        },
        "required": [
          "type",
          "azure_uri",
          "credentials"
        ]
      },
      "AzureCredentials": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "connection_string",
              "sas"
            ],
            "default": "connection_string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "value"
        ]
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```