How to send different http commands from within automation

Getting this error now:
Error rendering command template: JSONDecodeError: Input must be bytes, bytearray, memoryview, or str: line 1 column 1 (char 0)

I got it to work. The whole command has to be listed in configuration.yaml for it to work. Is there any way to variable-ize the data so I only need one entry and can configure the data from an automation?

Yes that is exactly what this topic was about. Look above for the solution.

I’ve tried that without success.

Ok, figured it out. The {{input}} needs single quotes around it AND the data entry also needs single quotes. Using {{input}} was stripping the single quotes from the data entry for some reason, so I need it at both points.