> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mesa.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# changes.create()

> Create a change on top of an existing base change.

Create a new change, optionally applying initial file operations atomically. File content must be base64-encoded.

**Required scope: `write`**

```python theme={null}
import base64
from mesa_sdk import FileDelete, FileUpsert

change = await mesa.changes.create(
    repo="app",
    base_change_id="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz",
    message="Add README",
    authors=[{"name": "Docs Bot", "email": "docs@example.com"}],
    files=[
        FileUpsert(
            path="README.md",
            content=base64.b64encode(b"# App\n").decode(),
        ),
        FileDelete(path="old.txt"),
    ],
)
```

## Options

**repo** `str` *required*

Repository name.

**base\_change\_id** `str` *required*

Change to create the new change on top of. Use Mesa's virtual root change ID for the first change in an empty repository.

**message** `str | None`

Change description. Required when `files` is non-empty. When `files` is omitted, pass `None` to omit the field and create the change with no description, or pass `""` explicitly.

**authors** `list[Author] | None`

Commit authors, in order, with at least one entry. Private-key clients set this.

**committer** `Committer | None`

Committer identity. When omitted, the first author is used.

**files** `list[FileChange] | None`

File operations to apply atomically. Entries are `FileUpsert` or `FileDelete`.

## Response

**id** `str`

Change ID.

**current\_commit\_oid** `str`

Current commit OID for the change.

**is\_conflicted** `bool`

Whether the current commit still contains unresolved conflicts.

**message** `str`

Current change description. Empty string means the change has no description.

**author** `CommitIdentity`

Commit author identity.

**committer** `CommitIdentity`

Committer identity.

**parents** `list[str]`

Parent change IDs for this change.

**created\_at** `datetime`

Creation time.

**updated\_at** `datetime`

Last update time.

### CommitIdentity

**name** `str`

Author or committer display name.

**email** `str`

Author or committer email address.

**date** `datetime | None`

Timestamp for this identity when provided.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.