This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Alert when creating comment via API

When creating a comment via the API, no alerts are sent to anyone. 

I am trying to send an e-mail to the requester.

I am also attempting to add a mention to a user, the requester or otherwise via the API, but that does not alert anyone either.

Is this a bug?  Is there a different was of doing this?

Here is the first attempt that simply copies the text of the message:

{
    "comment": {
        "body": "@Chris Bean this is a message",
        "is_private": "false",
        "user_id": "xxxxxxx"
    }
}

  

Here is an HTML example of the JSON that I send for comment:

{

    "comment": {
        "body": "<p><span class=\"user_with_avatar waiting CommentRichText__mention___1s8de\" data-id=\"4921780\" data-klass=\"Group\"><span class=\"username\" style=\"color: #0079aa;\">@Chris Bean</span></span> oops</p>",
        "is_private": "false",
        "user_id": "xxxxxxx"
    }
}
Parents Reply Children
No Data