# Using CDATA Rest Task to call Azure DevOps Rest API - Error

**URL:** <https://community.cdata.com/t/using-cdata-rest-task-to-call-azure-devops-rest-api-error/264>\
**Category:** CData Drivers\
**Tags:** question\
**Created:** [July 17, 2023, 5:36pm UTC](https://community.cdata.com/t/using-cdata-rest-task-to-call-azure-devops-rest-api-error/264 "2023-07-17T17:36:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Flood](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@John\_Flood](https://community.cdata.com/u/John_Flood)\
**Post date:** [July 17, 2023, 5:36pm UTC](https://community.cdata.com/t/using-cdata-rest-task-to-call-azure-devops-rest-api-error/264/1 "2023-07-17T17:36:30Z")

</div>

Hello,

I am trying to use CData Rest Task to call a Rest API from Azure DevOps.&nbsp; The goal will be to pull the capacity information from the call.

[https://dev.azure.com/AIZ-Global/\_apis/projects/2ef0bfbb-5826-423d-a8e7-c970f2268f59/teams/64155638-69bf-4173-b301-2022f7bb356c/members?api-version=5.1](https://dev.azure.com/AIZ-Global/_apis/projects/2ef0bfbb-5826-423d-a8e7-c970f2268f59/teams/64155638-69bf-4173-b301-2022f7bb356c/members?api-version=5.1)

When I enter the URI into the into URI field&nbsp; under the connection section and select test connection I get the following error message.

 ![18696998-2a61-4b4c-8fef-b866d71c73fe.jpg](https://us1.discourse-cdn.com/cdata/original/2X/3/3dc519ff5c9ef11cb5a93e000651af8c9a2229c9.jpeg)

I am sure that I am doing something wrong here but not being a developer I am a little lost here.

Any help would be appreciate.&nbsp; If you need additional information I would be happy to provide it.

John Flood

---

<div class="post-metadata">

**Author:** ![Ankit\_Singh](https://sea3.discourse-cdn.com/cdata/user_avatar/community.cdata.com/ankit_singh/32/1614_2.png) [@Ankit\_Singh](https://community.cdata.com/u/Ankit_Singh)\
**Post date:** [July 18, 2023, 6:18am UTC](https://community.cdata.com/t/using-cdata-rest-task-to-call-azure-devops-rest-api-error/264/2 "2023-07-18T06:18:26Z")

</div>

Hey @John_Flood

You could use CData Azure DevOps SSIS Components for this as well:&nbsp;[https://www.cdata.com/drivers/azuredevops/ssis/](https://www.cdata.com/drivers/azuredevops/ssis/), which should make it easier for you to connect to the Azure DevOps instance without going through the trouble of creating the URI yourself.

Is there any specific reason you are using the REST connector for this?

---

<div class="post-metadata">

**Author:** ![John\_Flood](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@John\_Flood](https://community.cdata.com/u/John_Flood)\
**Post date:** [July 18, 2023, 1:20pm UTC](https://community.cdata.com/t/using-cdata-rest-task-to-call-azure-devops-rest-api-error/264/3 "2023-07-18T13:20:19Z")

</div>

The Capacity extract is only available via the Rest API.

> **[Capacities - List - REST API (Azure DevOps Work)](https://learn.microsoft.com/en-us/rest/api/azure/devops/work/capacities/list?view=azure-devops-rest-6.0&tabs=HTTP)**
>
> Learn more about Work service - Get a team's capacity

---

<div class="post-metadata">

**Author:** ![Ankit\_Singh](https://sea3.discourse-cdn.com/cdata/user_avatar/community.cdata.com/ankit_singh/32/1614_2.png) [@Ankit\_Singh](https://community.cdata.com/u/Ankit_Singh)\
**Post date:** [July 19, 2023, 11:24am UTC](https://community.cdata.com/t/using-cdata-rest-task-to-call-azure-devops-rest-api-error/264/4 "2023-07-19T11:24:47Z")

</div>

Hi @John_Flood

CData Azure DevOps SSIS Connectors should support connecting to the [REST APIs](https://cdn.cdata.com/help/HNH/rssis/pg_datamodel.htm) along with [Analytics API](https://cdn.cdata.com/help/HNH/rssis/pg_analyticsdatamodel.htm). If you don’t see an object like Capacities being exposed in the REST data model using Azure DevOps SSIS Components, you can raise a request with our Tech support team for this:&nbsp;[CData - Support Form](https://www.cdata.com/support/submit.aspx).

What you tested with the REST connector, requires further investigation and would be best directed to our Tech support team at&nbsp;&nbsp;[CData - Support Form](https://www.cdata.com/support/submit.aspx).
