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

  • Base URL: https://api.myaltimate.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.myaltimate.com/public/snippets
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

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 operation across all 82 revisions of this API.