Skip to main content
POST
/
git_commits
Python
import os
from miru_platform_sdk import Miru

client = Miru(
    api_key=os.environ.get("MIRU_API_KEY"),  # This is the default and can be omitted
)
git_commit = client.git_commits.create(
    message="Update config schema for robot1",
    origin="https://github.com/robot1/robot1.git",
    sha="a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
)
print(git_commit.id)
{
  "object": "git_commit",
  "id": "git_commit_123",
  "sha": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
  "message": "Add basic motion configurations",
  "repository_owner": "user",
  "repository_name": "repo",
  "repository_type": "github",
  "repository_url": "https://github.com/user/repo",
  "commit_url": "https://github.com/user/repo/commit/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
  "created_at": "2021-01-01T00:00:00Z"
}
ScopeRequired
git_commits:writeYes

Authorizations

X-API-Key
string
header
required

The API key to use for authentication.

Headers

Miru-Version
string
required

The API version the client was built against.

Example:

"2026-03-09.tetons"

Body

application/json
sha
string
required

The SHA hash of the git commit.

Example:

"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"

message
string
required

The commit message.

Example:

"Update config schema for robot1"

origin
string
required

The URL of the git repository origin.

Example:

"https://github.com/robot1/robot1.git"

Response

200 - application/json

Successfully created the git commit.

object
enum<string>
required

The object type, which is always git_commit.

Available options:
git_commit
Example:

"git_commit"

id
string
required

ID of the git commit.

Example:

"git_commit_123"

sha
string
required

The SHA hash of the git commit.

Example:

"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"

message
string
required

The commit message.

Example:

"Add basic motion configurations"

repository_owner
string
required

The owner of the git repository.

Example:

"user"

repository_name
string
required

The name of the git repository.

Example:

"repo"

repository_type
enum<string>
required
Available options:
github,
gitlab,
bitbucket
repository_url
string
required

The URL of the git repository.

Example:

"https://github.com/user/repo"

commit_url
string
required

The URL of the git commit.

Example:

"https://github.com/user/repo/commit/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"

created_at
string<date-time>
required

Timestamp of when the git commit was created.

Example:

"2021-01-01T00:00:00Z"

Last modified on March 13, 2026