We actuly update xray test cases by doing a curl with JIRA username and password.
curl -H "Content-Type: application/json" -X POST -u JIRAUSERNAME: