v1

latestOpenAPI 3.1.02026-07-13897404.3 KB
Templates

edit template

Edits an existing template in place.

Templates are mutable. Use PUT with the template's hash_id to update it. You only need to include the fields you want to change - unchanged fields retain their existing values.

Note: The template's hash_id will change after editing (since it's content-based), but the numeric id stays the same.

For detailed usage, see Creating and Using Templates with API.

CLI Usage: vastai update template <hash_id> [options]

put/api/v0/template/

Request body

hash_idstring required

Hash ID of the template to edit. Required for identifying which template to update.

namestring

Name of the template

imagestring

Docker image path

descstring

Short description of the template

recommended_disk_spacenumber

Recommended disk space in GB

Response

Template updated successfully

successboolean