

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

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

**To edit a state machine**

1. Open the AWS Batch console [Workflow orchestration powered by Step Functions page](https://console.aws.amazon.com/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.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html) in the *AWS Step Functions Developer Guide*.