Using api(icontrol), need to associate irule to virtual server

For version 11 and version 12, curl -k -H “Authorization:Basic XXXXXXXXX” -H “Content-Type:application/json” -X PATCH --data ‘{“rules”: [“_sys_https_redirect”]}’ Note-virtual server = ACS5 rule to be associated = _sys_https_redirect But for version 10, getting error like “Cannot process request!” in xml format. what is the alternative to this issue using api

Versions before 11.5 do not support the REST interface, you would need to use the SOAP interface previously.