v6

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-05-12308589.5 KB
Git Commits

Create

Register a git commit.

post/git_commits

Request body

shastring required

The SHA hash of the git commit.

messagestring required

The commit message.

originstring required

The URL of the git repository origin.

Example request

{
  "sha": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
  "message": "Update config schema for robot1",
  "origin": "https://github.com/robot1/robot1.git"
}

Response

Successfully created the git commit.

object'git_commit' required

The object type, which is always git_commit.

idstring required

ID of the git commit.

shastring required

The SHA hash of the git commit.

messagestring required

The commit message.

repository_ownerstring required

The owner of the git repository.

repository_namestring required

The name of the git repository.

repository_type'github' | 'gitlab' | 'bitbucket' required
repository_urlstring required

The URL of the git repository.

commit_urlstring required

The URL of the git commit.

created_atstring date-time required

Timestamp of when the git commit was created.

Example response

{
  "object": "git_commit",
  "id": "git_commit_123",
  "sha": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
  "message": "Add basic motion configurations",
  "repository_owner": "user",
  "repository_name": "repo",
  "repository_url": "https://github.com/user/repo",
  "commit_url": "https://github.com/user/repo/commit/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
  "created_at": "2021-01-01T00:00:00Z"
}