POST /v1/sessions/{session_id}/git/commit
POST
/v1/sessions/{session_id}/git/commit
const url = 'https://app.everruns.com/api/v1/sessions/example/git/commit';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"author_email":"[email protected]","author_name":"Support Agent","branch":"main","message":"feat: draft migration plan"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.everruns.com/api/v1/sessions/example/git/commit \ --header 'Content-Type: application/json' \ --data '{ "author_email": "[email protected]", "author_name": "Support Agent", "branch": "main", "message": "feat: draft migration plan" }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” session_id
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
Request to create a commit
object
author_email
author_name
Author name (defaults to “Agent”)
string | null
Example
Support Agent branch
Branch name (defaults to “refs/heads/main”); short names like “main” are normalized
string | null
Example
main message
required
Commit message
string
Example
feat: draft migration planResponses
Section titled “ Responses ”Commit created
Media type application/json
Result of a commit operation
object
objects_created
required
integer
oid
required
string
tree_oid
required
string
Example generated
{ "objects_created": 1, "oid": "example", "tree_oid": "example"}Invalid request
Session not found