Override artifact-dependencies through REST api
I'm attempting to override the default value for an artifact-dependency through the REST API. There doesn't appear to be any documentation on how to do this. What values do I have to provide in the POST content in order to get this working?
Here's what I'm currently using without success:
{
"buildType": {
"id": "SimpleApiWithDependencies"
},
"artifact-dependencies": {
"build": [
{
"id": 9480,
"type": "artifact-dependency"
}
],
"count": 1
}
}
I'd expect that this would tell Teamcity to build the project SimpleApiWithDependencies using the artifacts from build 9480.
Please sign in to leave a comment.
I've answered my own question. I needed to fetch the project info from /httpAuth/app/rest/buildTypes/id:<buildTypeId> and then make the following changes to the artifact dependencies: