Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
H5K Posted November 15, 2022 Posted November 15, 2022 The API documentation clearly states that "to" is an array. Sorry. According to the documentation for this endpoint, "from" and "to" parameters are the member_id. I can view the member IDs from the URL and know they are correct: /admin/?app=core&module=members&controller=members&do=view&id=1196 Despite this, I am getting invalid_recipient. The API key I am using does have permissions, the member IDs exist, and I have also tried using display names and emails. from:1196 to:1195 title:test body:test test { "errorCode": "1C374/3", "errorMessage": "INVALID_RECIPIENT" } Please close this I am an idiot and am not passing an array.
Solution Jim M Posted November 15, 2022 Solution Posted November 15, 2022 to is required to be an array, not integer so would need to change that in your setup. H5K 1
H5K Posted November 15, 2022 Author Posted November 15, 2022 Just now, Jim M said: to is required to be an array, not integer so would need to change that in your setup. { "from": 39, "to": [ 1196 ], "title": "TestTitle", "body": "TestBody" } Now I am getting invalid sender 😕 { "errorCode": "1C374\/2", "errorMessage": "INVALID_SENDER" }
Jim M Posted November 15, 2022 Posted November 15, 2022 User ID 39 have the ability to send messages?
H5K Posted November 15, 2022 Author Posted November 15, 2022 8 minutes ago, Jim M said: User ID 39 have the ability to send messages? Yes, I have also tried with user 1 (the global admin account). The accounts are activated and I tried sending messages through the UI.
Jim M Posted November 15, 2022 Posted November 15, 2022 Please be advised I have marked this to a developer to review this. Someone will be with you as soon as they can.
H5K Posted November 15, 2022 Author Posted November 15, 2022 52 minutes ago, Jim M said: Please be advised I have marked this to a developer to review this. Someone will be with you as soon as they can. OK, how will I be contacted? Also, is this a confirmed bug with IPS?
Jim M Posted November 15, 2022 Posted November 15, 2022 You will be contacted here. No, it is not a confirmed bug. Our developers will look at what you have provided here and confirm next steps.
Stuart Silvester Posted December 22, 2022 Posted December 22, 2022 Sorry for the delay! Can you share more about how are you are sending the request? Your post suggests that you're sending JSON to the API, whereas you need to send the values as POST parameters.
Recommended Posts