POST
/
gpu-instance
/
openapi
/
v1
/
gpu
/
instance
/
restart
curl --request POST \
  --url https://api.novita.ai/gpu-instance/openapi/v1/gpu/instance/restart \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "instanceId": "<string>"
}'

This API is used to restart a specific GPU instance.

Request Headers

Content-Type
string
required

Enum: application/json

Authorization
string
required

Bearer authentication format, for example: Bearer {{API Key}}.

Request Body

instanceId
string
required

ID of the instance to be restarted.

Example

Request


curl --request POST \
  --url 'https://api.novita.ai/gpu-instance/openapi/v1/gpu/instance/restart' \
  --header 'Authorization: Bearer {{API Key}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "instanceId": "<string>"
  }'

Response

{}