These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Error with sendmail endpoint

Author
Blacksmoke16
Imperial Academy
#1 - 2016-09-13 22:48:13 UTC  |  Edited by: Blacksmoke16
The newmail endpoint is not working with recipient list. The data type should be Array List. however when submitting it it errors. Generated from postman.

POST /characters/2047918291/ui/openwindow/newmail/ HTTP/1.1
Host: crest-tq.eveonline.com
Content-Type: application/vnd.ccp.eve.NewMail-v1+json
Authorization: bearer xxx
Cache-Control: no-cache
Postman-Token: cfd6bfc8-c88c-9dba-3630-565e42e54d1f

{
"subject": "Hello",
"body": "no",
"recipients": [2047918291]
}


returns

{
"message": "Unhandled exception of type ",
"key": "unhandledException",
"exceptionType": "InternalServerError",
"refID": "d853938a-4a0e-4c28-a93b-6c76cc3bd175"
}


When submitting an empty array or no recipients element it works just fine.
Carbon Alabel
Gemini Talon
The Curatores Veritatis Auxiliary
#2 - 2016-09-13 23:08:08 UTC
The recipients array should contain objects, not bare IDs.

{
  "subject": "Hello",
  "body": "world!",
  "recipients": [{"id":93265215}]
}
Blacksmoke16
Imperial Academy
#3 - 2016-09-14 01:10:42 UTC
That would do it, thanks.