---
search:
  tags:
    - templates
    - POST
seo:
  description: >-
    With source_machine_id the machine's disk is captured and the template is
    returned in… Reference for the POST /v1/templates endpoint in the Computer
    API API.
sidebar:
  badge: POST
  label: create a template
title: create a template
type: openapi-operation
---
With `source_machine_id` the machine's disk is captured and the template is returned in `building`. With neither a source machine nor a snapshot the template is just a named image and size, and is `ready` immediately.

<Operation source="api" id="templates-create" />
