Maybe you can use temperature substitution
Copy using Rules API thermostatCoolingSetpoint to Temperature & Humidity device’s temperature and then temperature can be included in the URL string or request body with variable substitution: ${temperature}