Rework parameters

### Bug fixes

- Fix headers in parameters so that invalid enums fail the route.