Changed otapi_id to external_id in variables names for RESTful interface