curl --request POST \
--url https://api.novita.ai/gpu-instance/openapi/v1/gpu/instance/upgrade \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"instanceId": "<string>",
"imageUrl": "<string>",
"envs": [
{
"key": "<string>",
"value": "<string>"
}
],
"command": "<string>",
"save": true,
"networkVolume": {
"volumeMounts": [
{
"type": "<string>",
"id": "<string>",
"mountPath": "<string>"
}
]
},
"imageAuthId": "<string>"
}
'