v5

latestOpenAPI 3.1.02026-08-081,0211,3082.1 MB
PUBLIC_SNIPPETS

Update Snippet Endpoint

Update an existing snippet in Weaviate.

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

patch/public/snippets/{snippet_id}

Path parameters

snippet_idstring required

Request body

titlestring nullable

Title or name of the snippet

descriptionstring nullable

Description of what the snippet does

database_typestring nullable

Database type

tagsstring[] nullable

Capability tags

full_contentobject nullable

Full snippet content

Response

Successful Response

idstring required

Unique identifier for the snippet

titlestring required

Title or name of the snippet

descriptionstring required

Description of what the snippet does

database_typestring required

Database type (e.g., clickhouse, postgres)

tagsstring[]

Capability tags

typestring required

Snippet type: data_definition or sql_example

full_contentobject

Full snippet content