We are trying to deploy a template on multiple devices using API, how can we specify a device tag or device group name in the deploy template payload body.
I'm not a Cisco DNA expert but I've found some resources which may prove helpful to you:
Cisco DNA Center SDK - The DNA SDK is a tool that allows creating extension configuration for DNA Center. The primary purpose is to allow partners to build support for managing non-Cisco devices directly into DNA Center.