---
title: "Update Catalog Template"
method: PATCH
path: "/infra/catalog/templates/{code}"
tags: ["catalog"]
---

# Update Catalog Template

`PATCH /infra/catalog/templates/{code}`

## Request

- Base URL: `https://api.4chems.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.4chems.com/infra/catalog/templates/{code}`
- Auth: HTTP bearer

Update an existing ApplicationTemplate's fields and return the completed
operation. Call this when an infra admin needs to correct or refresh a
template's catalog metadata.

## Path parameters

- `code` string, required

## Request body

- TemplateUpdateIn
  - `name` string, nullable
  - `description` string, nullable
  - `image_url` string, nullable
  - `repository_url` string, nullable
  - `version` string, nullable
  - `kind` 'deployed' | 'platform_feature', nullable
  - `legacy` boolean, nullable
  - `legacy_note` string, nullable
  - `includes` string[], nullable
  - `options` unknown[], nullable
    - unknown

## Response `200`

Successful Response

- OperationOut
  - `operation_id` string, uuid, required
  - `status` string, required
  - `type` string, required
  - `target_type` string, nullable
  - `target_id` string, nullable
  - `result` unknown
  - `error` ErrorDetail
    - `code` string, required
    - `message` string, required
  - `created_at` string, date-time, required
  - `finished_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/4chems/apis/platform-api.md) · [All operations](https://skmtc.dev/4chems/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/4chems/apis/platform-api/revisions/65e4f7b4dba0?raw)
