tag:help.appveyor.com,2012-11-13:/discussions/questions/37295-allowed-to-use-multiple-projects-for-a-single-codebaseAppVeyor: Discussion 2019-07-04T21:01:01Ztag:help.appveyor.com,2012-11-13:Comment/472305092019-05-04T03:51:12Z2019-05-04T03:51:12Zallowed to use multiple projects for a single codebase?<div><p>It's no problem to have multiple projects that all draw from the same repository. But keep a couple things in mind....</p>
<p>Projects do not really consume resources, but build jobs do, and for free plan, you are only allowed 1 concurrent job. If one is running, others will be queued.</p>
<p>Secondly, if you add a repo as a new project when there is already a project with that name, AppVeyor will assign a random slug based on that name. But you can rename the slug via the <a href="https://www.appveyor.com/docs/api/projects-builds/#update-project">AppVeyor Rest API</a>.<br>
Here is a sample powershell script to change a project slug.</p>
<pre>
<code>$token = '<your_appveyor_api_token>'
$headers = @{
"Authorization" = "Bearer $token"
"Content-type" = "application/json"
}
$response = Invoke-RestMethod -Uri 'https://ci.appveyor.com/api/projects/<your_account_name>/<current_project_slug>/settings' -Headers $headers -Method Get
$response.settings.slug="<new_project_slug>"
Invoke-RestMethod -Uri 'https://ci.appveyor.com/api/projects' -Headers $headers -Method PUT -Body ($response.settings | convertto-json -depth 5)</code>
</pre></div>Owen McDonnell