Update Bot via Api

235 views
Skip to first unread message

Jason L. Bogle

unread,
Jul 21, 2018, 4:15:55 PM7/21/18
to GroupMe API Support
There does not appear to be an api call for updating a bot's name, avatar, or callback. I would love this to be implemented so my users can easily change the name and avatar of their bot. 

Is there a reason we can create and delete bots via the api, but we can't update them via the api? 

yurisend

unread,
May 15, 2021, 4:04:25 AM5/15/21
to GroupMe API Support
There's an undocumented way to do it. 

Send a POST request to: 
    https://api.groupme.com/v3/bots/bot_id?token=access_token

The bot's id is appended as the last path component after the bots API endpoint.

Send with request body (e.g. to update bots name):
    {"bot":{"name":"NewBotName","bot_id":"012345678"}}


To the change the callback url and the avatar url, replace "bot_id" in the request body with either "avatar_url" or "callback_url"

This worked about 6 months ago. I haven't tried it recently, but given that development of GroupMe apis is pretty stagnant, I'd imagine nothing has changed.

yurisend

unread,
May 15, 2021, 4:52:03 AM5/15/21
to GroupMe API Support
EDIT: replace "name" in the req. body with "avatar_url" or "callback_url"

kicke...@gmail.com

unread,
May 15, 2021, 10:54:45 AM5/15/21
to GroupMe API Support
Oh cool! I'll have to add that functionality to my app. Thanks!

Troy Wolf

unread,
Dec 12, 2023, 10:24:34 AM12/12/23
to GroupMe API Support
Really old thread, and I'm brand new to GroupMe bot development. I am a "seasoned" web developer, though. It was super easy to create my first bot, join it to a group, and get the callback_url service working. I also was able to easily have my bot post in the group.

However, I'm having several issues that seem like bugs, although with humility I try to assume I'm just doing something wrong. :)

I can't set the "avatar_url" on my bot. I've tried using the bot creation form and the API--the request returns successfully, but the "avatar_url" is always null.

Worse is that when you click the default avatar on one of the bot's posts in the group, you get some random and apparently real person's profile! It's a different person each time I create a bot.

I've got more issues, but I'll start with those. 

Reply all
Reply to author
Forward
0 new messages