Hello
Regarding the original question : To apply a device template this should be the Body
URL
{{PROTOCOL}}://{{NSO_IP}}:{{NSO_HTTP_PORT}}/restconf/data/tailf-ncs:devices/device={{IOS_XR_DEVICE}}/apply-template/
BODY ( add the remaining variables )
...