Skip to main content
POST
Restart nodes of a reservation

Overview

Asks for nodes to be rebooted; the action behind morph compute restart and the dashboard’s Restart. Morph’s on-call reboots them, so the call is a request: each running node you name reads restarting once the request is delivered, and running again when it is back. Everything running on a node stops. Read state on each node of Get Compute Reservation to follow it. Organization keys require an organization admin.

Authorizations

Authorization
string
header
required

Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.

Path Parameters

id
string<uuid>
required

Identifies the reservation the nodes belong to. Id of the reservation whose nodes to restart.

Example:

"b81f2c40-7d9e-4a35-9c16-3f5a8e0d2b74"

Body

application/json

The nodes to restart.

The nodes a request is about.

nodeNames
string[]
required

Node names from the reservation.

Required array length: 1 - 1000 elements
Required string length: 1 - 253
Example:

Response

Restart requested.

The restart that was requested.

restarting
string[]
required

The nodes now restarting: the running ones among those named. A node named that was not running is left out and unchanged.

Example: