---
title: "Upload Pack source code."
method: POST
path: "/packs/{packId}/uploadSourceCode"
tags: ["Packs"]
---

# Upload Pack source code.

`POST /packs/{packId}/uploadSourceCode`

Request a signed s3 URL to upload your Pack source code.

## Path parameters

- `packId` integer, required

## Request body

- UploadPackSourceCodeRequest — Payload for a Pack asset upload.
  - `payloadHash` string, required — The SHA-256 hash of the image to be uploaded.
  - `filename` string, required
  - `packVersion` string

## Response `200`

The information indicating where to upload the Pack source code.

- PackSourceCodeUploadInfo — Information indicating where to upload the Pack source code, and an endpoint to mark the upload as complete.
  - `uploadUrl` string, url, required — A signed URL to be used for uploading a Pack source code.
  - `uploadedPathName` string, required — An endpoint to mark the upload as complete.
  - `headers` object, required — Key-value pairs of authorization headers to include in the upload request.

## Other responses

- `400` — The request parameters did not conform to expectations.
- `401` — The API token is invalid or has expired.
- `403` — The API token does not grant access to this resource.
- `404` — The resource could not be located with the current API token.
- `429` — The client has sent too many requests.

---

[API](https://skmtc.net/coda/apis/superhuman-docs-api.md) · [All operations](https://skmtc.net/coda/apis/superhuman-docs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coda/superhuman-docs-api/versions/c65a8418f3c8/schema)
