Skip to main content
POST
/
{org}
/
{repo}
/
change
Create change
curl --request POST \
  --url https://api.mesa.dev/v1/{org}/{repo}/change \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "<string>",
  "author": {
    "name": "<string>",
    "email": "jsmith@example.com",
    "date": "2023-11-07T05:31:56Z"
  },
  "committer": {
    "name": "<string>",
    "email": "jsmith@example.com",
    "date": "2023-11-07T05:31:56Z"
  },
  "files": [],
  "bookmark": "<string>",
  "base_change_id": "<string>",
  "base_commit_oid": "<string>"
}
'
{
  "id": "<string>",
  "current_commit_oid": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required
Minimum string length: 1
repo
string
required
Minimum string length: 1

Body

application/json
message
string
Minimum string length: 1
author
object
committer
object
files
object[]
bookmark
string
Minimum string length: 1
base_change_id
string
Pattern: ^[zyxwvutsrqponmlk]{32}$
base_commit_oid
string
Pattern: ^[0-9a-f]{40}$

Response

Change created

id
string
required
Pattern: ^[zyxwvutsrqponmlk]{32}$
current_commit_oid
string
required
Pattern: ^[0-9a-f]{40}$
message
string
required