---
title: "Install Template Set"
method: PUT
path: "/templatesets"
tags: ["Template Management"]
---

# Install Template Set

`PUT /templatesets`

Installs a new template set or updates existent templateset from a variety of sources

## Request body

- union
  - object — Install a previously uploaded zip archive as a template set
    - `name` string, required — The name of the Template Set to install (excluding the .zip extension).
  - object — Install a GitHub repository (or sub-directory in a repository) as a template set
    - `gitHubRepo` string, required — A GitHub repository to use as a template set
    - `gitToken` string — An API token used to access private repositories
    - `gitSubDir` string, nullable — The sub-directory in the git repo to install as a template set
    - `gitRef` string — The Git ref to use when fetching the repository
    - `name` string — Template set name to use (defaults gitSubDir if available or the repo name)
  - object — Install a GitLab repository (or sub-directory in a repository) as a template set
    - `gitLabRepo` string, required — A GitLab repository to use as a template set
    - `gitLabUrl` string — URL to the GitLab instance
    - `gitToken` string — An API token used to access private repositories
    - `gitSubDir` string, nullable — The sub-directory in the git repo to install as a template set
    - `gitRef` string — The Git ref to use when fetching the repository
    - `name` string — Template set name to use (defaults gitSubDir if available or the repo name)

## Response `200`

The Template Set installed successfully.

- FastResponse200 — OK - Request was successful.
  - `code` integer, required
  - `message` string, required
  - `requestId` integer
  - `_links` LinksDefinition — An object containing link references.
    - `self` string — Self-link to endpoint
    - `task` string — Self-link to task endpoint

## Other responses

- `400` — The supplied Template Set name is invalid or missing.
- `404` — The supplied Template name was not found in /var/config/rest/downloads.
- `500` — Internal error. A bug report should be filed.

---

[API](https://skmtc.net/f5networks/apis/f5-big-ip-application-services-templates-api.md) · [All operations](https://skmtc.net/f5networks/apis/f5-big-ip-application-services-templates-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/f5networks/f5-big-ip-application-services-templates-api/versions/69d12c15d1c7/schema)
