Share via

API Endpoint for adding Test Case Inside Test Suite

Anonymous
2025-02-27T05:10:50+00:00

Hi all,

          I have an issue in accessing the Azure devops API endpoint. My requirement is to create a new testcase inside the test suite via C# code. For that I need an API endpoint to use in my code. I can able to create a new test case outside the test suite. But inside the test suite I cannot be able to add that. I followed the same way which is in the Microsoft Documentation. But still it throws an error. I have attached my error snapshot below.

This is the URL which I have checked with postman : POST https://dev.azure.com/{organization}/{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase?api-version=7.1

This is the body which I have used :

[ {"pointAssignments": [{"configurationId": 5}],"workItem": {"id": 3971}}![](https://learn-attachment.microsoft.com/api/attachments/094cf595-965b-4545-98f3-ec333cfa3cb4?platform=QnA"https://learn-attachment.microsoft.com/api/attachments/601eb7b8-fcbf-46a8-9a8e-bb4f85a64616?platform=QnA" title="filestore.community.support.microsoft.com" rel="ugc nofollow">![](https://learn-attachment.microsoft.com/api/attachments/601eb7b8-fcbf-46a8-9a8e-bb4f85a64616?platform=QnA

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2025-02-27T09:35:07+00:00

    Thanks Martin...!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-02-27T09:26:03+00:00

    Dear Antony Rex,

    Thank you for reaching out to the Microsoft Community.

    It looks like you're working with a specialized configuration issue involving Azure DevOps API endpoints, and while I’d love to assist, this is a scenario that goes beyond the scope of support typically provided within the Answers community.

    To get the most accurate and detailed help, I recommend visiting Microsoft Q&A, which is specifically designed for technical issues like yours. There, you can click Ask a question, select the relevant board, and you'll be able to engage with experts and experienced users who specialize in Azure DevOps and API integrations.

    Here’s the link to Microsoft Q&A:

    Azure - Microsoft Q&A

    Thank you for your understanding, and I wish you the best of luck in resolving the issue. I’m confident that the right support community will provide you with the expertise you need to solve this.

    Best Regards,

    Martin | Microsoft Community Support Specialist

    Was this answer helpful?

    0 comments No comments