Skip to content

Update Teams Webhook Payload Format in Kured notifyUrl #106

@paulocesarweb

Description

@paulocesarweb

Description

Currently, Kured sends notifications to Microsoft Teams webhooks using a payload format that is no longer supported. Microsoft has deprecated the Office 365 Connectors webhook format, as mentioned in the official announcement:

Retirement of Office 365 Connectors within Microsoft Teams

Teams now expects a payload format similar to the following:

curl -X POST "WEBHOOK_URL" \
     -H "Content-Type: application/json" \
     -d '{
          "type": "message",
          "attachments": [
              {
                  "contentType": "application/vnd.microsoft.card.adaptive",
                  "content": {
                      "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                      "type": "AdaptiveCard",
                      "version": "1.4",
                      "body": [
                          {
                              "type": "TextBlock",
                              "text": "Teste de notificacao do Webhook"
                          }
                      ]
                  }
              }
          ]
     }'

Without this update, Kured notifications to Teams webhooks will no longer function as expected due to Microsoft's deprecation of the old format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions