Trim request fields in api