Home

Unable to post a message from Graph API Explorer to Teams

%3CLINGO-SUB%20id%3D%22lingo-sub-811504%22%20slang%3D%22en-US%22%3EUnable%20to%20post%20a%20message%20from%20Graph%20API%20Explorer%20to%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-811504%22%20slang%3D%22en-US%22%3E%3CP%3EAfter%20following%20the%20documentation%20i%20am%20able%20to%20create%20a%20Channel%20but%20unable%20to%20post%20a%20message%20to%20a%20channel.%3C%2FP%3E%3CP%3EPOST%20Method%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fteams%2F49fjfj570-0a14-40ff-abf6-d899adfdefafa%2Fchannels%2F19%3A3ea88b8d91f544cc96763786c28cd6010%40thread.skype%2Fmessages%2FHello%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fteams%2F49fjfj570-0a14-40ff-abf6-d899adfdefafa%2Fchannels%2F19%3A3ea88b8d91f544cc96763786c28cd6010%40thread.skype%2Fmessages%2FHello%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EResponse%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22error%22%3A%20%7B%3CBR%20%2F%3E%22code%22%3A%20%22BadRequest%22%2C%3CBR%20%2F%3E%22message%22%3A%20%22Resource%20not%20found%20for%20the%20segment%20'messages'.%22%2C%3CBR%20%2F%3E%22innerError%22%3A%20%7B%3CBR%20%2F%3E%22request-id%22%3A%20%22729731a6-d7ce-4687-a00a-51eda380a705%22%2C%3CBR%20%2F%3E%22date%22%3A%20%222019-08-19T18%3A33%3A50%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-811504%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGraphAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Graph%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-811798%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20post%20a%20message%20from%20Graph%20API%20Explorer%20to%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-811798%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F176008%22%20target%3D%22_blank%22%3E%40Abdul%20Azeez%3C%2FA%3E%26nbsp%3BPlease%20validate%20using%20graph%20explorer%20once%20again.%20We%20can%20able%20to%20test%20using%20beta%20version.%20Chat%20messages%20in%20preview%20now.%26nbsp%3B%3CBR%20%2F%3EGET%20%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%3C%2FA%3E%3CSTRONG%3E%2Fbeta%2Fteams%2F%3C%2FSTRONG%3E303d2c1c-f1c5-40ce-b68e-544343d7f42b%3CSTRONG%3E%2Fchannels%2F%3C%2FSTRONG%3E19%3Afec4b0f2825d4c8c82abc09027a64184%40thread.skype%2Fmessages%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFollow%20the%20below%20link%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-list-messages%3Fview%3Dgraph-rest-beta%26amp%3Btabs%3Dhttp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-list-messages%3Fview%3Dgraph-rest-beta%26amp%3Btabs%3Dhttp%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Abdul Azeez
Occasional Contributor

After following the documentation i am able to create a Channel but unable to post a message to a channel.

POST Method: 

https://graph.microsoft.com/v1.0/teams/49fjfj570-0a14-40ff-abf6-d899adfdefafa/channels/19:3ea88b8d91...

 

 

Response:

 


{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'messages'.",
"innerError": {
"request-id": "729731a6-d7ce-4687-a00a-51eda380a705",
"date": "2019-08-19T18:33:50"
}
}
}

 

 

1 Reply

@Abdul Azeez Please validate using graph explorer once again. We can able to test using beta version. Chat messages in preview now. 
GET https://graph.microsoft.com/beta/teams/303d2c1c-f1c5-40ce-b68e-544343d7f42b/channels/19:fec4b0f2825d4c8c82abc09027a64184@thread.skype/messages

 

Follow the below link

https://docs.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-beta&tabs=http

 

 

 

 

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies