converted api requeest to pass operation type