Update Agent Sandbox
client.sandboxVMs.update(stringsandboxVMID, SandboxVMUpdateParams { name, tags } body, RequestOptionsoptions?): SandboxVM { id, created_at, endpoint_hostname, 13 more }
PATCH/v1/sandbox_vms/{sandbox_vm_id}
Update Agent Sandbox
import NirvanaLabs from '@nirvana-labs/nirvana';
const client = new NirvanaLabs({
apiKey: process.env['NIRVANA_LABS_API_KEY'], // This is the default and can be omitted
});
const sandboxVM = await client.sandboxVMs.update('sandbox_vm_id');
console.log(sandboxVM.id);{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-01-01T00:00:00Z",
"endpoint_hostname": "0123456789ab.sandboxes.example.com",
"image_version": "2026.11.1",
"instance_type": "n1-highcpu-2",
"name": "my-sandboxes",
"opensandbox_version": "1.2.0",
"paused_at": "2025-01-01T00:00:00Z",
"power_state": "running",
"powers_off_at": "2025-01-01T01:00:00Z",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"region": "us-sva-2",
"status": "ready",
"tags": [
"production",
"agents"
],
"updated_at": "2025-01-01T00:00:00Z",
"vpc_id": "123e4567-e89b-12d3-a456-426614174000"
}Returns Examples
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-01-01T00:00:00Z",
"endpoint_hostname": "0123456789ab.sandboxes.example.com",
"image_version": "2026.11.1",
"instance_type": "n1-highcpu-2",
"name": "my-sandboxes",
"opensandbox_version": "1.2.0",
"paused_at": "2025-01-01T00:00:00Z",
"power_state": "running",
"powers_off_at": "2025-01-01T01:00:00Z",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"region": "us-sva-2",
"status": "ready",
"tags": [
"production",
"agents"
],
"updated_at": "2025-01-01T00:00:00Z",
"vpc_id": "123e4567-e89b-12d3-a456-426614174000"
}