Answered by:
Visual Studio Online REST API Version seems to be 2.0

Question
-
I would like to download the build artficats of a successful build via REST API. When calling the REST API it is not working as described in the reference guide. When I have a look at the HTTP response header of such a REST API request it is:
Content-Type:application/json; charset=utf-8; api-version=2.0And when adding request parameter api-version=1.0 it does not return any results.
This request:
https://{account}.visualstudio.com/DefaultCollection/{project}/_apis/build/builds?api-version=1.0
returns: { "value": [ ], "count": 0 }
And this request
https://{account}.visualstudio.com/DefaultCollection/{project}/_apis/build/builds?api-version=2.0
returns JSON containing build information, but without URL pointing to the artifacts.
So it seems Visual Studio Online REST API is only working with version 2.0.
Thanks and best regards!
- Edited by Matthias Weibel Tuesday, July 7, 2015 3:29 PM
Tuesday, July 7, 2015 12:39 PM
Answers
-
@Matthias - the 2.0 Build API docs are in the process of being finalized. Target is next week.
Will Smythe, PM on Visual Studio Online
- Proposed as answer by Sunil Hurkadli Saturday, July 11, 2015 4:10 PM
- Marked as answer by Asha99Moderator Monday, July 13, 2015 4:48 AM
Thursday, July 9, 2015 6:42 PM
All replies
-
Hi Matthias,
As per the documentation Visual Studio Online REST APIs current version is
1.0
and version 2.0 is in preview.Please go through the below links which gives more insight on the versions:
https://www.visualstudio.com/en-us/integrate/get-started/rest/versions-and-history
https://www.visualstudio.com/en-us/integrate/api/overview
Please mark as answer if the post is helpful.
Regards,
Sunil.HPTuesday, July 7, 2015 2:50 PM -
Thanks for your reply, but it does not solve my problem.Thursday, July 9, 2015 12:49 PM
-
@Matthias - the 2.0 Build API docs are in the process of being finalized. Target is next week.
Will Smythe, PM on Visual Studio Online
- Proposed as answer by Sunil Hurkadli Saturday, July 11, 2015 4:10 PM
- Marked as answer by Asha99Moderator Monday, July 13, 2015 4:48 AM
Thursday, July 9, 2015 6:42 PM