> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/release-notes/cloudeka-api/ai-backend/update-vm-yaml.md).

# Update VM YAML

This API is used to update the VM YAML

```json
{"openapi":"3.1.1","info":{"title":"Cloudeka AI - API Documentation","version":"1.0.0"},"tags":[{"name":"AI Backend","description":"API endpoints for AI Backend (base: /core)"}],"servers":[{"url":"https://ai.cloudeka.id/"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"description":"Type 'Bearer ' followed by your JWT token. Example: \"Bearer eyJhbGciOi...\"","type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"ai_backend__handler.SuccessRespond":{"type":"object","properties":{"code":{"type":"integer"},"data":{},"message":{"type":"string"}}},"ai_backend__handler.BaseError":{"type":"object","properties":{"code":{"type":"string"},"error":{}}},"ai_backend__requests.ResourceDefinition":{"type":"object","properties":{"apiVersion":{"type":"string"},"kind":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"spec":{"type":"object"}}}}},"paths":{"/core/virtual-machine/yaml/{projectId}/{namespace}/{name}":{"post":{"description":"This API is used to update the VM YAML","tags":["AI Backend","VMs"],"summary":"Update VM YAML","parameters":[{"schema":{"type":"string"},"description":"Project ID","name":"projectId","in":"path","required":true},{"schema":{"type":"string"},"description":"Namespace","name":"namespace","in":"path","required":true},{"schema":{"type":"string"},"description":"VM Name","name":"name","in":"path","required":true}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_backend__handler.SuccessRespond"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_backend__handler.BaseError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_backend__requests.ResourceDefinition"}}},"description":"VM Definition","required":true}}}}}
```
