Hello Matjaz REBERC,
Thank you for reaching out to Microsoft Support!
Yes, you can set synonyms when creating a term using Microsoft Graph. When you create a term, you can include multiple labels for the term, which can act as synonyms. Each label can have a different name but refer to the same term.
Here's an example of how you can create a term with synonyms using the Microsoft Graph API:
POST https://graph.microsoft.com/v1.0/sites/{site-id}/termStore/sets/{set-id}/children
Content-Type: application/json
{
"labels": [
{
"languageTag": "en-US",
"name": "Car",
"isDefault": true
},
{
"languageTag": "en-US",
"name": "Automobile",
"isDefault": false
},
{
"languageTag": "en-US",
"name": "Vehicle",
"isDefault": false
}
]
}
In this example, "Car" is the default label, and "Automobile" and "Vehicle" are synonyms.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.