---
title: "POST /api/v2/prebuilds/templates"
method: POST
path: "/api/v2/prebuilds/templates"
tags: ["Prebuilds"]
---

# POST /api/v2/prebuilds/templates

`POST /api/v2/prebuilds/templates`

## Request body

- CreatePrebuildTemplateBody
  - `friendlyName` string, required
  - `planId` string, nullable
  - `storageType` integer
  - `seed` SeedInfoBody
    - `seedType` string, nullable
    - `seedMoniker` string, nullable
    - `gitConfig` GitConfigOptionsBody
      - `userName` string, nullable
      - `userEmail` string, nullable
    - `recurseClone` boolean
    - `repository` RepositoryInfoBody
      - `repoId` integer
      - `name` string, nullable
      - `url` string, nullable
      - `branchName` string, nullable
      - `owner` string, nullable
      - `commitId` string, nullable
      - `prebuildHash` string, nullable
      - `createType` string, nullable
      - `diskUsage` string, nullable
    - `cloneUrl` string, nullable
  - `experimentalFeatures` ExperimentalFeaturesBody
    - `queueResourceAllocation` boolean
    - `enableDynamicHttpsDetection` boolean
    - `usePrebuiltImages` boolean
    - `usePrebuildFastPathIfAvailable` boolean
    - `useStorageV2` boolean
    - `useRawFuse` boolean
    - `copilotWorkspace` boolean
    - `systemOnContainerCommandParams` object, nullable
    - `fileSyncerWithBridge` boolean
    - `sparkCloudspace` boolean
    - `sessionHardLimit` number, double, nullable
    - `useGpsCompute` boolean
  - `features` object, nullable
  - `templateInfo` PrebuildTemplateInfo
    - `totalTimeSavingsInSeconds` string, nullable
    - `templateSizeInGB` number, double
    - `container` ContainerInfo
      - `id` string, nullable
      - `schemaVersion` string, nullable
      - `imageName` string, nullable
    - `workFlowRunId` string, nullable
    - `prebuildConfigurationId` string, nullable
    - `storageImageVersion` integer
  - `devContainerPath` string, nullable
  - `gitHubPrebuildInstanceEndpoint` string, nullable
  - `gitHubPrebuildTemplateEndpoint` string, nullable

## Response `201`

Created

- CreateTemplateResult
  - `templateId` string, nullable
  - `sasUrl` string, nullable
  - `properties` object, nullable

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/visualstudio/apis/vsonline.md) · [All operations](https://skmtc.net/visualstudio/apis/vsonline/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/visualstudio/vsonline/revisions/d55b712ea3ab/schema)
