Hello @Bipin P , thank you for reaching out. Please find the answers to the points shared by you in the post:
- Create a new chat
Ans: For creating a new chat in Microsoft Teams using the Graph API, you can use the following API:- POST https://graph.microsoft.com/v1.0/teams/{id}/channels/{id}/messages
More details on this API can be found here: https://learn.microsoft.com/en-us/graph/api/channel-post-messages?view=graph-rest-1.0&tabs=http
- POST https://graph.microsoft.com/v1.0/teams/{id}/channels/{id}/messages
- Update chat name
Ans: For updating a chat message in Microsoft Teams using the Graph API, you can use the following APIs:- PATCH https://graph.microsoft.com/v1.0/teams/(team-id)/channels/{channel-id}/chatMessages/{message-id}
- PATCH https://graph.microsoft.com/v1.0/users/(user-id)/chats/{chatThread-id}/chatMessages/{message-id}
More details on these APIs can be found here: https://learn.microsoft.com/en-us/graph/api/chatmessage-update?view=graph-rest-1.0&tabs=http
- Add and Remove members from Chat
Ans: For adding or removing a member from the Teams chat using Graph API, you can use the following APIs:- To Add a user to chat: POST https://graph.microsoft.com/v1.0/teams/{id}/channels/{id}/members/
- To Delete/Remove a user from a chat: DELETE https://graph.microsoft.com/V1.0/teams/{id}/channels/{id}/members/{id}
More details can be found on the following links:
https://learn.microsoft.com/en-us/graph/api/conversationmember-add?view=graph-rest-1.0
https://learn.microsoft.com/en-us/graph/api/conversationmember-delete?view=graph-rest-1.0&tabs=http
- Chat activities that which user added and removed in the Chat group.
Ans: There is no Graph API available to achieve this as of now.
Hope this helps.
Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as an Answer; if the above response helped in answering your query.