PUBLIC_SNIPPETS

Create Snippet Endpoint

Create a new snippet in Weaviate.

This endpoint creates a new snippet in either the DataDefinition or SqlExamples collection based on the type field.

post/public/snippets

Request body

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 required

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

Changes

No recorded changes to this endpoint across all 28 revisions of this API.