Building a Data Stack Live with AI AgentsLivestream August 18

Skip to main content

MD_UPDATE_GUIDE_METADATA

Preview
This feature is in preview and is subject to change.

Change a Guide's title, description, or topic without appending a content version. The guide keeps its ID and full version history.

Syntax

SELECT * FROM MD_UPDATE_GUIDE_METADATA(
id = '<guide_uuid>',
topic = 'customer-orders',
title = 'Updated Title'
);

Parameters

Provide at least one of title, description, or topic.

ParameterTypeRequiredDescription
idUUIDYesThe guide's UUID.
titleVARCHARNoNew human-readable title. Must not be empty when supplied.
descriptionVARCHARNoNew one-line summary. Pass an empty string ('') to clear it.
topicVARCHARNoNew grouping label — for example 'revenue-billing' or 'core/metrics' (no leading or trailing slash). Pass an empty string ('') to remove the topic.

Return columns

ColumnTypeDescription
idUUIDGuide UUID
topicVARCHARUpdated topic (NULL when cleared)
titleVARCHARUpdated title
descriptionVARCHARUpdated description
owner_idUUIDUUID of the guide owner
owner_nameVARCHARName of the guide owner
accessVARCHAR'user' or 'organization'
current_versionUINTEGERLatest version number (unchanged)
created_atTIMESTAMP WITH TIME ZONEWhen the guide was created
updated_atTIMESTAMP WITH TIME ZONEWhen the guide was last updated

Examples

Move a guide to a different topic:

SELECT id, topic, title
FROM MD_UPDATE_GUIDE_METADATA(
id = 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
topic = 'customer-orders',
title = 'Customer Order Filters'
);

Update only the description:

SELECT description
FROM MD_UPDATE_GUIDE_METADATA(
id = 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
description = 'MRR and ARR definitions, including expansion and churn adjustments'
);

Remove the topic (move the guide to the root level):

SELECT topic
FROM MD_UPDATE_GUIDE_METADATA(
id = 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
topic = ''
);