Skip to main content

Overview

As your infrastructure grows, you may need to reorganize resources across projects. You can move VMs, volumes, snapshots, and other resources from one project to another using the Update Project endpoint or by updating the resource’s project assignment.

Prerequisites

export RAFF_API_KEY="YOUR_API_KEY"

Move a Resource to a Different Project

Update a VM’s project assignment by specifying the new project ID:
curl -X PATCH https://api.rafftechnologies.com/api/v1/vms/{vm-id} \
  -H "X-API-Key: $RAFF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "project_id": "<new-project-uuid>"
  }'

Update a Project

Rename or update the description of an existing project:
curl -X PATCH https://api.rafftechnologies.com/api/v1/projects/{project-id} \
  -H "X-API-Key: $RAFF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "new-project-name",
    "description": "Updated description"
  }'

Important Notes

  • Moving a resource does not affect its running state — VMs continue running
  • Billing is tracked at the account level, not the project level
  • Resource IDs remain unchanged after a move
  • All associated resources (volumes, snapshots) should be moved together for consistency

Next Steps