---
title: "Update Template Component"
method: PATCH
path: "/templates/{template_id}/component_templates/{id}/"
tags: ["Components for Templates"]
---

# Update Template Component

`PATCH /templates/{template_id}/component_templates/{id}/`

## Request

- Base URL: `http://api.cannoli.app/api/v1`
- URL: `http://api.cannoli.app/api/v1/templates/{template_id}/component_templates/{id}/`
- Auth: none declared

## Request body

- ComponentTemplate
  - `id` integer
  - `component` integer, required
  - `position` integer

## Response `200`

OK

- ComponentTemplate
  - `id` integer
  - `component` integer, required
  - `position` integer

---

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