title: How to get builds by specifying multiple tags by TeamCity REST API?
body: <p>I have some builds. Each build has two tags. Tags show module name and version. So tags loogs like <code>one-module</code> and <code>1.2.3</code> or <code>two-module</code> and <code>4.5.6</code>. </p>
  
  <p>I can do this:</p>
  
  <pre><code>/httpAuth/app/rest/builds/?locator=tags:one-module,branch:unspecified:any&amp;fields=build(tags(tag))
  </code></pre>
  
  <p>I will get this:</p>
  
  <pre><code>{
    "build": [
      {
        "tags": {
          "tag": [
            {
              "name": "1.2.4"
            },
            {
              "name": "one-module"
            }
          ]
        }
      },
      {
        "tags": {
          "tag": [
            {
              "name": "1.2.3"
            },
            {
              "name": "one-module"
            }
          ]
        }
      }
    ]
  }
  </code></pre>
  
  <p>Now I want to get latest build with tags <code>one-module</code> and <code>1.2.4</code>. How I can do this?</p>
  
  <p>I try this:</p>
  
  <pre><code>/httpAuth/app/rest/builds/?locator=tags:one-module,1.2.4,branch:unspecified:any&amp;fields=build(tags(tag))
  </code></pre>
  
  <p>But I got this:</p>
  
  <pre><code>Error has occurred during request processing (Bad Request).
  Error: jetbrains.buildServer.server.rest.errors.LocatorProcessException: Bad locator syntax: Invalid dimension name :'1.2.4'. Should contain only alpha-numeric symbols or be known one. Details: locator: 'tags:one-module,1.2.4,branch:unspecified:any', at position 16
  Invalid request. Check locator is specified correctly.
  </code></pre>
  
  <p>I have TeamCity version 9.1.6. TeamCity REST API BuildLocator <a href="https://confluence.jetbrains.com/display/TCD9/REST+API#RESTAPI-BuildLocator" rel="nofollow">documentation</a> says:</p>
  
  <blockquote>
    <p>tags: - ","(comma) - a delimited list of build tags (only builds
    containing all the specified tags are returned)</p>
  </blockquote>
  
  <p>So, I try to select build by 2 or more tags like this. This doesn't work?</p>
  
  <p>What I am doing wrong? How I can get build latest build by 2 or more tags?</p>