---
title: "Request source upload URL"
method: POST
path: "/api/v1/functions/{function_id}/source-upload"
tags: ["Functions"]
---

# Request source upload URL

`POST /api/v1/functions/{function_id}/source-upload`

Returns a presigned URL to PUT a source zip (max 100MB). After
uploading, start a deployment with the returned `source_blob_key`.

## Path parameters

- `function_id` string, required

## Response `200`

Presigned upload slot

- object
  - `success` boolean
  - `data` FunctionSourceUpload
    - `upload_url` string — Presigned URL — PUT the zip here (Content-Type application/zip)
    - `source_blob_key` string
    - `expires_in_seconds` integer

## Other responses

- `401` — Authentication required
- `404` — Resource not found

---

[API](https://skmtc.dev/rafftechnologies/apis/raff-api.md) · [All operations](https://skmtc.dev/rafftechnologies/apis/raff-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rafftechnologies/raff-api/revisions/2f4df56be77c/schema)
