Update a GPU VM
Update GPU VM metadata (name, resource group, SSH key association, username). Requires GPU feature to be enabled.
Path Parameters
- Type: stringFormat: uuididrequired
The GPU VM ID
Body
required
application/json
- Type: stringname
New name for the GPU VM
- Type: stringFormat: uuidresource
Group Id Resource group ID to assign the VM to
- Type: stringFormat: uuid nullablessh
Key Id SSH key ID to associate with the VM, or null to clear the association
- Type: stringusernamemin length:3max length:20
Pattern: ^[a-zA-Z_][a-zA-Z0-9_-]*$Username for SSH access (must start with a letter or underscore)
Responses
- application/json
- application/json
- application/json
- 403
GPU feature not enabled for this entity
- application/json
- application/json
Request Example for put/resource/gpu/{id}
curl https://api.gpcn.com/v1/resource/gpu/123e4567-e89b-12d3-a456-426614174000 \
--request PUT \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_SECRET_TOKEN' \
--data '{
"name": "",
"resourceGroupId": "",
"sshKeyId": "",
"username": ""
}'
{
"success": true,
"message": "string",
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"createdAt": "2026-05-19T14:02:02.487Z",
"updatedAt": "2026-05-19T14:02:02.487Z",
"deletedAt": "2026-05-19T14:02:02.487Z",
"status": "Provisioning",
"configuration": {
"name": "string",
"code": "string",
"gpuCount": 1,
"cpu": 1,
"ram": 1,
"disk": 1,
"skuId": "123e4567-e89b-12d3-a456-426614174000",
"skuCode": "string"
},
"ip": "string",
"datacenter": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"region": "string",
"countryAbbr": "string",
"country": "string"
},
"resourceGroupId": "123e4567-e89b-12d3-a456-426614174000",
"resourceGroupName": "string",
"image": "string",
"jupyterUrl": "string",
"username": "string",
"sshKeyId": "123e4567-e89b-12d3-a456-426614174000",
"sshKeyName": "string",
"hasStoredCredentials": true
},
"meta": null
}.png)