REST API: archive project / move build configuration to archived project.
Answered
Hello All,
Is there any way to archive a project or move build configuration to archived project using REST API?
Thanks,
PF
Please sign in to leave a comment.
Yes, you can use the following:
The endpoint accepts text/plain and uses true or false to set the desired status. For more information, please see https://www.jetbrains.com/help/teamcity/rest/manage-projects.html#Project+Settings.
Thanks Eric Borchardt Could you give me an example of that request in Python, because now I received information (GET method) if the project is archived or not.
verify=False, headers={"Content-Type": "application/xml"})
print(project.text)
I am considering whether or not I should use another method:
but I have the same issue.
Here is an example of a GET request to retrieve the archived status of a project using Python
Here is an example of a PUT request to archive a project using Python
thanks!