Forum Discussion
Can we create Tag inside Team using graph api?
- Jan 30, 2022
Yogi4 - Now you can create/Get teams tags using Beta Graph API.
Reference doc: Create teamworkTag - Microsoft Graph beta | Microsoft Docs
You can also get the created tags using below Beta Graph API:
GET /teams/{team-Id}/tags
List teamworkTags - Microsoft Graph beta | Microsoft Docs
You can also send the message with mentioning teams tag using below API
Post request: https://graph.microsoft.com/v1.0/teams/{team id}/channels/{channel id}/messages
Message body:
{
"subject": "This is very urgent!",
"importance": "urgent",
"body": {
"contentType": "html",
"content": "Programmatically mentioning of Tagged users <at id=\"0\">String_1234</at>"
},
"mentions": [
{
"id": 0,
"mentionText": "String_1234",
"mentioned": {
"tag": {
"@odata.type": "#microsoft.graph.teamworkTagIdentity",
"id": "", //tag id
"displayName": "" // tag name
}
}
}
]
}
Thanks!!
No, there’s no API for this now
adam deltinger Is there ETA on this. Many other users need this as well as my org asap.
Thank you