Corrected name of field 'endpoint' to 'endPoint'