---
title: "Create Initial Commit"
method: POST
path: "/api/v1/functions/{function_id}/commits"
tags: ["Function Commit"]
---

# Create Initial Commit

`POST /api/v1/functions/{function_id}/commits`

CreateInitialCommit starts a new commit and returns upload URLs for files

## Path parameters

- `function_id` string, required — The functionId field.

## Request body

- C1ApiFunctionsV1FunctionsServiceCreateInitialCommitRequestInput — The FunctionsServiceCreateInitialCommitRequest message.
  - `commitMessage` string — The commitMessage field.
  - `filenames` string[], nullable — The filenames field.

## Response `200`

Successful response

- C1ApiFunctionsV1FunctionsServiceCreateInitialCommitResponse — The FunctionsServiceCreateInitialCommitResponse message.
  - `commitId` string — The commitId field.
  - `uploadUrls` object — The uploadUrls field.

## Changes

- **2026-04-30** `fa2bb307d6fa` — 1 info
  - endpoint added
- **2025-12-05** `db31ee81cba5` — 1 breaking
  - api removed without deprecation
- **2025-08-20** `182cb087dfa4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/conductorone/apis/c1-api/changes/api/v1/functions/:function_id/commits/post.md)

---

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