Unable to get rewrite working

-- tyk.json:
{
  "name": "my-service",
  "api_id": "my-service",
  "org_id": "abcdefg12345",
  "definition": {
      "location": "",
      "key": ""
  },
  "use_keyless": true,
  "auth": {
      "auth_header_name": ""
  },
  "version_data": {
      "not_versioned": true,
      "versions": {
          "Default": {
              "name": "Default",
              "expires": "3000-01-02 15:04",
              "use_extended_paths": true,
              "extended_paths": {
                  "ignored": [],
                  "white_list": [],
                  "black_list": [],
                  "url_rewrites": [{
                      "path": "/rest/{op}/{id}",
                      "method": "GET",
                      "match_pattern": "\/rest\/(\w+)\/(\w+)",
                      "rewrite_to": "v1/$1/$2"
                  },{
                      "path": "/rest/{op}",
                      "method": "POST",
                      "match_pattern": "\/rest\/(\w+)"
                      "rewrite_to": "v1/$1"
                  }]
              }
          }
      }
  },
  "proxy": {
      "listen_path": "/rest/",
      "target_url": "http://patg-cnf-my-service.patg:1234",
      "strip_listen_path": true
  },
  "do_not_track": true
}-- end tyk.json

auth=x-tyk-authorization:xxxxx
curl -XDELETE -L -H x-tyk-authorization:xxxxx http://tyk.patg:8080/tyk/apis/my-service -Ss -k
{"status":"error","error":"Delete failed"}

curl -L -H x-tyk-authorization:xxxxx http://tyk.patg:8080/tyk/reload/ -Ss -k
{"status":"ok","error":""}

curl -XPUT -w '\nresponse_code=%{http_code}\n' -L -H x-tyk-authorization:xxxxx http://tyk.patg:8080/tyk/apis/my-service -d @/etc/tyk/api/tyk.json -Ss -k
{"status":"error","error":"Request malformed"} response_code=400
Error: command failed