Forum Discussion
posting Incoming webhook to MS Teams using curl command
To send a message through your incoming webhook, you post a JSON payload to the webhook URL.
Hers is the https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using#example-connector-message , you can get more information regarding creating incoming webhook https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook#add-an-incoming-webhook-to-a-teams-channel.
- alnhkAug 17, 2021Copper Contributor
Were you able to achieve this issue ? We are unable to do, we are hitting "Bad payload Received by Generic incoming Webhook." Can you please share the sample full curl command with attachment payload. We are struggling to get this addressed - https://techcommunity.microsoft.com/t5/microsoft-teams/migrating-the-scripts-to-ms-teams/m-p/2620143#M98025