messagebird / messagebird-nodejs

The open source Node.js client for MessageBird's REST API
https://www.messagebird.com/developers
105 stars 44 forks source link

groups.addContacts() endpoint gives Resource not found error #89

Closed harryjamesuk closed 3 years ago

harryjamesuk commented 3 years ago

Code sample:

messagebird.groups.addContacts(
    "group-id",
    ["first-id"],
    (e, res) => callback(e, res)
)

Will call HTTP GET /groups/group-id?_method=PUT&ids[]=first-id which fails with a Resource not found error and status code 404.

Expected result is status code 204 No Content.

aodinok commented 3 years ago

Hey @harryjamesuk

Thank you for reporting and fixing this! I merged your MR and release a new version: v.3.7.1