"success" flag in the REST endpoint response
Hi,
I am trying to call REST end (create/update lead), I am getting the following response:
{ "requestId": "f618#14e76a888a9", "result": [{"status": "skipped","reasons": [{"code": "1003","message": "Value for requried field 'id' not specified"}]}],"success": true}
While the error message is proper and justified, my problem is with the "success" value. Why is it set to "true" when my operation failed? Shouldn't it be false?
I am using this flag to raise exception in my code. In above case, it failed. Either the method should succeed or throw exception.
Thanks,
Rohit