Response body from Azure Devops Boards is not JSON

AdrianHolm
Tera Guru

Hello,

I'm currently trying to configre a REST step in order to get JSON object from Azure DevOps Boards. However, when I'm testing the REST step, I don't get any JSON object in Response body. This is what I get;

find_real_file.png

Any clue what might be wrong? Here's what's the input look like;

find_real_file.png

According to docs, this should somehow work? Please let me know if you need more information!

 

Best regards,
Adrian Holmestrand 

 

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Hey Adrian,

What you're getting there is the HTML of the webpage, suggesting you're not hitting a RESTful endpoint but one designed for end users.

From your first screenshot, your API URL should be in the format

dev.azure.com/{organisation}/_apis/{area}/{resource}

I think from your URL you've just taken the URL for the webpage and not the API specific endpoint for retrieving board information

Dashboards - List - REST API (Azure DevOps Dashboard) | Microsoft Docs

View solution in original post

3 REPLIES 3

Kieran Anson
Kilo Patron

Hey Adrian,

What you're getting there is the HTML of the webpage, suggesting you're not hitting a RESTful endpoint but one designed for end users.

From your first screenshot, your API URL should be in the format

dev.azure.com/{organisation}/_apis/{area}/{resource}

I think from your URL you've just taken the URL for the webpage and not the API specific endpoint for retrieving board information

Dashboards - List - REST API (Azure DevOps Dashboard) | Microsoft Docs

Of course.. I was just focusing on the goal rather than seeing what could be the problem. Thank you so much Kieran!

 

Best regards,
Adrian Holmestrand

manish62
Tera Contributor

Hello,

Did you find ay solution for this as these are OOB spoke action which we are using.

 

Thanks & Regards,

Manish Gupta