Var Store Create fails if the user send the POST with accid & appid
The issue stems from the code saying that a var can be applied to account or application. If the user send a POST with accid and appid, then the var should be applied to the application, otherwise the error makes no sense and is bad devX.
Edited by John