# Restart Machine (/machines/Machines_restart)

Restart a specific Machine within an app, with an optional timeout parameter.


`POST /apps/{app_name}/machines/{machine_id}/restart`

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `app_name` | path | `string` | Yes | Fly App Name |
| `machine_id` | path | `string` | Yes | Machine ID |
| `timeout` | query | `string` | No | Restart timeout as a Go duration string or number of seconds |
| `signal` | query | `string` | No | Unix signal name — Enum: SIGHUP, SIGINT, SIGQUIT, SIGKILL, SIGUSR1, SIGUSR2, SIGTERM |

## Responses

| Status | Description | Schema |
| --- | --- | --- |
| `200` | OK |  |
| `400` | Bad Request | `ErrorResponse` |

The full machine-readable OpenAPI spec is available at /openapi.json.