Appends a curve to a curveHist by id.
eOk if the operation is successful, or an appropriate error code otherwise.