---
title: "Generate data-link file upload URL"
method: POST
path: "/data-links/{dataLinkId}/upload"
tags: ["data-links"]
---

# Generate data-link file upload URL

`POST /data-links/{dataLinkId}/upload`

Creates a URL to upload files to the data-link associated with the given `dataLinkId`.
For AWS S3 data-links, an additional follow-up request must be sent after your file upload has completed (or encountered an error) to finalize the upload - see the `/upload/finish` endpoint.

## Path parameters

- `dataLinkId` string, required

## Query parameters

- `credentialsId` string
- `workspaceId` integer

## Headers

- `Origin` string, nullable

## Request body

- DataLinkMultiPartUploadRequest
  - `contentLength` integer
  - `contentType` string
  - `fileName` string

## Response `200`

OK

- DataLinkMultiPartUploadResponse
  - `uploadId` string
  - `uploadUrls` string[]

## Other responses

- `400` — BadRequest
- `403` — Operation not allowed
- `404` — NotFound — workspace or credentials not found, API disabled for the workspace, or data-link or path not found

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/13316c9fe5ff/schema)
