AnsweredAssumed Answered

API v10: POST /Mail set status as Unread

Question asked by Robin Thomas on Oct 13, 2015
Latest reply on Oct 27, 2015 by Robin Thomas
While importing an E-Mail via REST API v10, using POST /Mail, I ran into the following Problem:
The API validates the fields and one of the verifications ensures that the 'status' field is in_array with:

static private $apiStatusValues = array(
    "draft", // draft
    "ready", // ready to be sent
    "archive" // archived

I need it to be set to 'Unread' which, using the 4.1 API works perfectly. Is there a way to circumvent this?

Working on Sugar Enterprise