{
  "$id": "https://intentschema.org/profiles/com.microsoft.teams/communication.chat.message.reply.v1.json",
  "id": "org.intentschema.communication.chat.message.reply.v1@com.microsoft.teams.v1",
  "pins": "https://intentschema.org/intents/communication/chat/message/reply/v1.json",
  "title": "Teams chat message reply profile",
  "description": "Microsoft Teams profile for chat message reply.",
  "constraints": {
    "properties": {
      "target": {
        "properties": {
          "system": {
            "const": "ms_teams"
          }
        },
        "required": [
          "system"
        ]
      },
      "ms_teams": {
        "type": "object",
        "properties": {
          "mentions": {
            "type": "array"
          },
          "importance": {
            "enum": [
              "normal",
              "high",
              "urgent"
            ]
          }
        }
      }
    }
  },
  "api": {
    "method": "POST",
    "path": "/v1.0/teams/{teamId}/channels/{channelId}/messages/{messageId}/replies",
    "scopes": [
      "ChannelMessage.Send"
    ],
    "docs": "https://learn.microsoft.com/en-us/graph/api/chatmessage-post-replies",
    "params": {
      "object.channel_id": "chatId (or teamId/channelId for channel messages)",
      "object.text": "body.content",
      "ms_teams.mentions": "mentions[] (with id + displayName + mentioned.user.id)",
      "ms_teams.importance": "importance",
      "ms_teams.subject": "subject",
      "target.external_id": "messageId path param"
    },
    "base_url": "https://graph.microsoft.com"
  }
}
