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

# bazable accept

> Accept a pending AI-generated schema change proposal and apply it to your contract.

Accepts a pending AI‑generated proposal and applies the schema changes to the contract.

## Usage

```bash theme={null}
bazable accept <proposalId>
```

## Options

<Info>
  This command takes no options.
</Info>

## Prerequisites

* At least one pending proposal must exist in the contract. Proposals are created with [`bazable propose`](/commands/propose).
* The proposal ID is shown when the proposal is created, or you can list pending proposals with `bazable config --get pending_proposals`.

## What it does

<Steps>
  <Step title="Locate the proposal">
    Finds the proposal with the given ID in the `pending_proposals` array of your `bazable.config.json`.
  </Step>

  <Step title="Merge the changes">
    Merges the proposed request and response schema changes into the corresponding endpoint.
  </Step>

  <Step title="Mark as accepted">
    Marks the proposal as accepted with a timestamp so it is not applied again.
  </Step>
</Steps>

<Tip>
  After acceptance, push the updated contract with [`bazable push`](/commands/push) so the whole team stays in sync.
</Tip>

## Example

```bash theme={null}
bazable propose "Add a phone_number field to the POST /v1/users endpoint"
# Proposal ID: 1691501234567

bazable accept 1691501234567
# Proposal accepted and applied. Updated endpoint: POST https://api.example.com/v1/users
```


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