@limited-motherboard-51317 Its not rest but I used the below code to create a glossary term and add custom properties to it
from datahub.emitter.mcp import MetadataChangeProposalWrapper
from datahub.metadata.schema_classes import (
ChangeTypeClass,
GlossaryTermInfoClass,
)
mcp = MetadataChangeProposalWrapper(
entityType="glossaryTerm",
changeType=ChangeTypeClass.UPSERT,
entityUrn=''urn_of_your_term',
aspectName="glossaryTermInfo",
aspect=GlossaryTermInfoClass(
definition=f"description",
name="name of your term",
parentNode="urnliglossaryNode:xyz",
termSource="INTERNAL",
customProperties={"key": "value"},
),
)
graph.emit(mcp)