---
title: "Upload a build's source archive bytes"
method: PUT
path: "/v1/spaces/{spaceId}/uploads/{uploadId}"
tags: ["Spaces"]
---

# Upload a build's source archive bytes

`PUT /v1/spaces/{spaceId}/uploads/{uploadId}`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/spaces/{spaceId}/uploads/{uploadId}`
- Auth: HTTP bearer

Upload a gzip-compressed tar archive to the target returned when the build was created. Respect the upload instruction's maxBytes. The build is queued after the archive is stored.

## Path parameters

- `spaceId` string, required
- `uploadId` string, required

## Response `204`

The source archive was uploaded.

---

[API](https://skmtc.dev/spacefast/apis/spacefast-api.md) · [All operations](https://skmtc.dev/spacefast/apis/spacefast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spacefast/apis/spacefast-api/revisions/bd165bc7c983?raw)
