type should come from body not params