---
search:
  tags:
    - Uploads
    - PUT
seo:
  description: >-
    The bytes of the app's generated JavaScript, as application/octet-stream.
    At… Reference for the PUT /v1/sources/{sha256} endpoint in the Sproutboat
    Cloud API.
sidebar:
  label: Upload a source bundle
  badge: PUT
title: Upload a source bundle
type: openapi-operation
---
The bytes of the app's generated JavaScript, as `application/octet-stream`. At most 8 MiB, non-empty, valid
UTF-8, and `sha256` must be the lowercase hex SHA-256 of exactly these bytes (else 400 `digest mismatch`).
Idempotent. Not tied to an app until a build names it. The source belongs to the uploading team: another team's
build cannot name it. New bytes count against the team's 24-hour budget (429 `quota-upload`), and uploads are
rate-limited per team (429 `upload-rate`). A source no build used is deleted after a grace period of at least 48 hours.

`PUT /v1/sources/{sha256}`
