How to dynamically generate pods?

Hi, I’m beginner of Kubernetes.

I hope to realize a scene: Send YAML to Kubernetes via Post request to dynamically generate Job.

How can I achieve this?

Thanks!