---
title: "Install a template discovery"
method: POST
path: "/templates/discovery/install"
tags: ["Templates"]
---

# Install a template discovery

`POST /templates/discovery/install`

Endpoint to install a template discovery.

## Request body

- object
  - `organization` string
  - `destination` string
  - `isPrivate` boolean
  - `discovery` object
    - `idea` object
      - `productIdea` string
      - `productName` string
      - `industry` string
      - `brandVoice` string
      - `colorDescription` string
      - `painPoint` string
      - `outcome` string
    - `settings` object
      - `auth` object
        - `isSelected` boolean
        - `solution` 'emailAuth'
      - `database` object
        - `isSelected` boolean
        - `type` 'postgres'
      - `payment` object
        - `isSelected` boolean
        - `solution` string
        - `plan` 'oneTime' | 'subscription'
      - `selectedTitle` object
        - `title` string
        - `subtitle` string
      - `colorSettings` object
        - `primaryColor` string
        - `secondaryColor` string
      - `selectedFont` string
      - `selectedTheme` string
      - `components` unknown[]
        - unknown

## Response `200`

Successful operation

- object
  - `message` string

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Internal server error

## Changes

- **2024-06-12** `375f1da3cbc3` — 3 breaking, 2 warning, 9 info
  - request property `discovery/settings/auth/solution` was restricted to a list of enum values
  - request property `discovery/settings/database/type` was restricted to a list of enum values
  - request property `discovery/settings/payment/plan` was restricted to a list of enum values
  - removed the optional property `backendRepoId` from the response with the `200` status
  - …10 more
- **2024-06-02** `40e1c48fe92f` — 1 warning, 2 info
  - removed the optional property `message` from the response with the `200` status
  - added the optional property `backendRepoId` to the response with the `200` status
  - added the optional property `frontendRepoId` to the response with the `200` status
- **2024-06-02** `284995b12e6d` — 4 breaking, 1 info
  - removed the enum value `emailAuth` of the request property `discovery/settings/auth/solution`
  - removed the enum value `oneTime` of the request property `discovery/settings/payment/plan`
  - removed the enum value `postgres` of the request property `discovery/settings/database/type`
  - removed the enum value `subscription` of the request property `discovery/settings/payment/plan`
  - …1 more
- …earlier changes not shown

[Full history](https://skmtc.dev/domeplatform/apis/trydome-api/changes/templates/discovery/install/post.md)

---

[API](https://skmtc.dev/domeplatform/apis/trydome-api.md) · [All operations](https://skmtc.dev/domeplatform/apis/trydome-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/domeplatform/trydome-api/revisions/375f1da3cbc3/schema)
