---
raw: true
search:
  tags:
    - Spaces
    - PUT
seo:
  description: >-
    Upload a gzip-compressed tar archive to the target returned when… Reference
    for the PUT /v1/spaces/{spaceId}/uploads/{uploadId} endpoint in the
    Spacefast API.
sidebar:
  label: Upload a build's source archive bytes
  badge: PUT
title: Upload a build's source archive bytes
type: openapi-operation
---
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.

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

**Request body** (`application/octet-stream`, required)

The source archive's raw bytes.

Request body example:

```json
"string"
```

**Responses**

- `204` — The source archive was uploaded.
