Refactored /jam/set endpoint to use integer indices, instead of strings.