---
title: "Create a commit"
method: POST
path: "/commits/{owner}/{repo}"
tags: ["commits"]
---

# Create a commit

`POST /commits/{owner}/{repo}`

Creates a new commit in a repository.
Requires authentication and write access to the repository.

## Path parameters

- `owner` string, required
- `repo` string, required

## Request body

- CommitsCreateCommitReq
  - `description` string
  - `manifest` object
  - `parent_commit` string
  - `skip_webhooks` unknown

## Response `201`

Created

- CommitsCreateCommitResponse
  - `commit` CommitsCommitWithLookups
    - `commit_hash` string — The hash of the commit
    - `created_at` string, date-time — When the commit was created
    - `description` string — Optional human-readable description for the commit
    - `example_run_ids` string[] — Example run IDs associated with the commit
    - `full_name` string — Author's full name
    - `id` string, uuid — The commit ID
    - `manifest` object — The manifest of the commit
    - `manifest_sha` integer[] — The SHA of the manifest
    - `num_downloads` integer — Number of API downloads
    - `num_views` integer — Number of web views
    - `parent_commit_hash` string — The hash of the parent commit
    - `parent_id` string, uuid — The ID of the parent commit
    - `repo_id` string, uuid — Repository ID
    - `updated_at` string, date-time — When the commit was last updated

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
