"Min Period" Auto detection logic should be in backend?

Need Help regarding “Period” of AWS queries. I am hitting “api/tsdb/query” endpoint from my code, Its working well if panel has “Min Period” mentions.
If we don’t mention it (Auto) plugin will give appropriate value to it. But this is in frontend, cant we move this logic to backed plugin ? If we do so, i can hit api/tsdb/query endpoint to collect data from my application without manipulating Period.