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

# Restart Compute Nodes

> Ask for nodes of a reservation to be rebooted at /api/v1/compute/reservations/{id}/nodes/restart

## 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](https://docs.morphllm.com/api-reference/endpoint/compute-get.md) to follow it. Organization keys require an organization admin.


## OpenAPI

````yaml POST /api/v1/compute/reservations/{id}/nodes/restart
openapi: 3.1.0
info:
  title: Morph API
  version: 1.2.0
  description: >-
    The Morph public API at api.morphllm.com: OpenAI- and Anthropic-compatible
    inference (chat completions, messages), Fast Apply code editing, Compact
    context compression, System One typed decisions, speech to text (audio
    transcription and translation), model listing, and dedicated endpoint
    management, agentic credit top-ups paid over x402, account usage and billing
    settings, and organization member budgets. Model ids, prices, and context
    windows are served live at https://www.morphllm.com/api/models/json.
  contact:
    name: Morph
    url: https://morphllm.com
    email: info@morphllm.com
  license:
    name: Proprietary
    url: https://morphllm.com/privacy/tos
servers:
  - url: https://api.morphllm.com
    description: Production
security: []
tags:
  - name: chat
    description: >-
      OpenAI- and Anthropic-compatible chat inference, including Fast Apply and
      WarpGrep models.
  - name: compact
    description: Context compression for long agent conversations.
  - name: systemone
    description: 'Typed decisions: a state in, a probability distribution per question out.'
  - name: audio
    description: >-
      Speech to text: transcription and translation of audio files,
      OpenAI-compatible.
  - name: models
    description: Model listing.
  - name: dedicated
    description: Dedicated endpoint discovery, status, and cancellation.
  - name: compute
    description: >-
      Dedicated compute: reserve whole GPU nodes by the month, manage SSH keys,
      give notice. Limited preview.
  - name: credits
    description: Agentic credit top-ups paid in USDC over x402.
  - name: account
    description: >-
      Usage and spend per day; billing settings: extra usage, spend limit and
      alert, auto-reload.
  - name: organization
    description: Organization member budgets.
  - name: telemetry
    description: Usage reporting hooks.
paths:
  /api/v1/compute/reservations/{id}/nodes/restart:
    post:
      tags:
        - compute
      summary: Restart nodes of a reservation
      description: >-
        Asks for nodes to be rebooted. Morph’s on-call reboots them, so this is
        a request: each running node named reads `restarting` once the request
        is delivered, and `running` again when it is back. Everything running on
        a node stops. Requires an organization admin.
      operationId: restartComputeNodes
      parameters:
        - schema:
            type: string
            format: uuid
            description: Id of the reservation whose nodes to restart.
            example: b81f2c40-7d9e-4a35-9c16-3f5a8e0d2b74
          required: true
          description: Identifies the reservation the nodes belong to.
          name: id
          in: path
      requestBody:
        description: The nodes to restart.
        content:
          application/json:
            example:
              nodeNames:
                - node-01
            schema:
              $ref: '#/components/schemas/ComputeNodeNamesBody'
      responses:
        '200':
          description: Restart requested.
          content:
            application/json:
              example:
                restarting:
                  - node-01
              schema:
                $ref: '#/components/schemas/ComputeRestartResult'
        '400':
          description: '`nodeNames` is missing or empty.'
          content:
            application/json:
              example:
                error: >-
                  Send {"nodeNames": ["node-01"]}: the names of the nodes to
                  restart, from GET
                  /api/v1/compute/reservations/b81f2c40-7d9e-4a35-9c16-3f5a8e0d2b74.
              schema:
                $ref: '#/components/schemas/ComputeError'
        '401':
          $ref: '#/components/responses/ComputeUnauthorized'
        '403':
          $ref: '#/components/responses/ComputeAdminRequired'
        '404':
          $ref: '#/components/responses/ComputeNotFound'
        '409':
          description: None of the nodes named is running, or the reservation has ended.
          content:
            application/json:
              example:
                error: Only running nodes can be restarted
              schema:
                $ref: '#/components/schemas/ComputeError'
        '502':
          description: >-
            The request could not be delivered to the Morph team, so no node was
            changed.
          content:
            application/json:
              example:
                error: >-
                  Could not reach the Morph team, so nothing was restarted.
                  Email support@morphllm.com.
              schema:
                $ref: '#/components/schemas/ComputeError'
      security:
        - bearerAuth: []
components:
  schemas:
    ComputeNodeNamesBody:
      type: object
      properties:
        nodeNames:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 253
          minItems: 1
          maxItems: 1000
          description: Node `name`s from the reservation.
          example:
            - node-01
      required:
        - nodeNames
      description: The nodes a request is about.
      example:
        nodeNames:
          - node-01
    ComputeRestartResult:
      type: object
      properties:
        restarting:
          type: array
          items:
            type: string
          description: >-
            The nodes now `restarting`: the running ones among those named. A
            node named that was not running is left out and unchanged.
          example:
            - node-01
      required:
        - restarting
      description: The restart that was requested.
      example:
        restarting:
          - node-01
    ComputeError:
      type: object
      properties:
        error:
          type: string
          description: Why the request failed and what to change, as one or two sentences.
          example: >-
            Reservation not found. List yours with GET
            /api/v1/compute/reservations.
      required:
        - error
      description: Error body returned by the compute routes.
      example:
        error: >-
          Reservation not found. List yours with GET
          /api/v1/compute/reservations.
  responses:
    ComputeUnauthorized:
      description: Missing or invalid Morph API key on a compute request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ComputeError'
          example:
            error: >-
              Missing or invalid API key. Send "Authorization: Bearer <key>"
              with a key from https://www.morphllm.com/dashboard/api-keys
    ComputeAdminRequired:
      description: >-
        The account is outside the limited preview, the key is a personal key,
        or the key belongs to an organization member who is not an admin. Writes
        need an organization admin.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ComputeError'
          example:
            error: >-
              An organization admin must reserve compute. Use an API key created
              by an admin of this organization.
    ComputeNotFound:
      description: >-
        No reservation with this id belongs to the key’s organization. Another
        organization’s reservation also returns 404, so existence is never
        leaked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ComputeError'
          example:
            error: >-
              Reservation not found. List yours with GET
              /api/v1/compute/reservations.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        Morph API key, passed as `Authorization: Bearer sk-...`. Create keys at
        https://www.morphllm.com/dashboard/api-keys.

````

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