

# Tutorial: Edit a state machine
<a name="stepfunctions-edit"></a>

When you want to edit a state machine, Amazon Batch opens the **Edit definition** page of the Step Functions console.

**To edit a state machine**

1. Open the Amazon Batch console [Workflow orchestration powered by Step Functions page](https://console.amazonaws.cn/batch/home#stepfunctions).

1. Choose a state machine.

1. Choose **Edit**.

   The Step Functions console opens the **Edit definition** page.

1. Edit the state machine and choose **Save**.

For more information about editing state machines, see [Step Functions state machine language](https://docs.amazonaws.cn/step-functions/latest/dg/concepts-amazon-states-language.html) in the *Amazon Step Functions Developer Guide*.