---
title: "Update Snippet Endpoint"
method: PATCH
path: "/public/snippets/{snippet_id}"
tags: ["PUBLIC_SNIPPETS"]
deprecated: true
---

# Update Snippet Endpoint

`PATCH /public/snippets/{snippet_id}`

> **Deprecated.**

Update an existing snippet in Weaviate.

This endpoint updates a specific snippet's properties.
Only non-null fields in the request will be updated.

## Path parameters

- `snippet_id` string, required

## Request body

- UpdateSnippetRequest — Request to update an existing snippet
  - `title` string, nullable — Title or name of the snippet
  - `description` string, nullable — Description of what the snippet does
  - `database_type` string, nullable — Database type
  - `tags` string[], nullable — Capability tags
  - `full_content` object, nullable — Full snippet content

## Response `200`

Successful Response

- SnippetItem — Individual code snippet from Weaviate
  - `id` string, required — Unique identifier for the snippet
  - `title` string, required — Title or name of the snippet
  - `description` string, required — Description of what the snippet does
  - `database_type` string, required — Database type (e.g., clickhouse, postgres)
  - `tags` string[] — Capability tags
  - `type` string, required — Snippet type: data_definition or sql_example
  - `full_content` object — Full snippet content

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/aab3fe5c9f05/schema)
