---
title: pydo.genai.create_evaluation_dataset_file_upload_presigned_urls()
description: Create Presigned URLs for Evaluation Dataset File Upload
product: Reference
url: https://docs.digitalocean.com/reference/pydo/reference/genai/create_evaluation_dataset_file_upload_presigned_urls/
last_updated: "2026-11-06"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# pydo.genai.create_evaluation_dataset_file_upload_presigned_urls()

Generated on 6 Nov 2026 from `pydo` version [`v0.45.0`](https://github.com/digitalocean/pydo/releases/tag/v0.45.0)

## Usage

```python
client.genai.create_evaluation_dataset_file_upload_presigned_urls(
    body={
        "files": [...],
    },
)
```

Returns `JSON` Raises `HttpResponseError`

## Description

To create presigned URLs for evaluation dataset file upload, send a POST request to [`/v2/gen-ai/evaluation_datasets/file_upload_presigned_urls`](https://docs.digitalocean.com/reference/api/reference/agent-platform-api/index.html.md#genai_create_evaluation_dataset_file_upload_presigned_urls).

## Parameters

`files` array of objects optional

A list of files to generate presigned URLs for.

## Show child properties

`file_name` string optional

Example: `example name`

Local filename

`file_size` string optional

Example: `12345`

The size of the file in bytes.

## Request Sample

## Show Request Sample

```python
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "files": [
    {
      "file_name": "example name",
      "file_size": "12345"
    }
  ]
}

resp = client.genai.create_evaluation_dataset_file_upload_presigned_urls(body=req)
```

## Response Example

## Show Response Example

```json
{
  "request_id": "123e4567-e89b-12d3-a456-426614174000",
  "uploads": [
    {
      "expires_at": "2023-01-01T00:00:00Z",
      "object_key": "example string",
      "original_file_name": "example name",
      "presigned_url": "example string"
    }
  ]
}
```

## More Information

See [`/v2/gen-ai/evaluation_datasets/file_upload_presigned_urls`](https://docs.digitalocean.com/reference/api/reference/agent-platform-api/index.html.md#genai_create_evaluation_dataset_file_upload_presigned_urls) in the API reference for additional detail on responses, headers, parameters, and more.