API-1029 Error when using REST API