Skip to main content
POST
/
{org}
/
{repo}
/
changes
Create change
curl --request POST \
  --url https://api.mesa.dev/v1/{org}/{repo}/changes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "base_change_id": "<string>",
  "message": "<string>",
  "files": []
}
'
{
  "id": "<string>",
  "current_commit_oid": "<string>",
  "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"
  },
  "parents": [
    "<string>"
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
Required scope: write

Authorizations

Authorization
string
header
required

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

Path Parameters

org
string
required

Organization slug

Minimum string length: 1
repo
string
required

Repository name

Minimum string length: 1

Body

application/json
base_change_id
string
required

Change to create the new change on top of. Use the virtual root change id (zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) to create the first change in an empty repository.

Pattern: ^[zyxwvutsrqponmlk]{32}$
message
string
Minimum string length: 1
author
object
committer
object
files
object[]

Response

Change created

id
string
required
Pattern: ^[zyxwvutsrqponmlk]{32}$
current_commit_oid
string
required
Pattern: ^[0-9a-f]{40}$
message
string
required
author
object
required
committer
object
required
parents
string[]
required
created_at
string<date-time>
required
updated_at
string<date-time>
required