---
title: "Bind a repository to a published project template"
method: PUT
path: "/v1/project-templates"
tags: ["Project templates"]
---

# Bind a repository to a published project template

`PUT /v1/project-templates`

## Request

- Base URL: `https://api.shardflux.dev`
- URL: `https://api.shardflux.dev/v1/project-templates`
- Auth: HTTP bearer

## Request body

- object
  - `repo_remote` string, required
  - `template_slug` string, required
  - `deps_hash` string, required
  - `project_id` string, uuid: UUIDv7, lowercase canonical form.

## Response `200`

Default Response

- ProjectTemplate
  - `template_slug` string, required
  - `version` integer, required
  - `deps_hash` string, required
  - `updated_at` string, date-time, required: RFC 3339 UTC timestamp with Z.

## Other responses

- `4XX`: Default Response
- `5XX`: Default Response

---

[API](https://skmtc.dev/shardflux/apis/shardflux-api.md) · [All operations](https://skmtc.dev/shardflux/apis/shardflux-api/llms.txt) · [OpenAPI document](https://skmtc.dev/shardflux/apis/shardflux-api/revisions/ea685f7b39c4?raw)
