Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Answered

DevOps HTTP request to delete test case or work item returns error TF400813 error

(0) ShareShare
ReportReport
Posted on by 31

Hi,

 

In one of my flows I would like to add the functionality to delete test cases in DevOps. I put the DevOps http request action: 

JackP_0-1649843013451.png

 

I am receiving the TF400813 - 'Unauthorized' error:

JackP_8-1649843616664.png

 

 

JackP_4-1649843207613.png

 

 

I took The URI address from the MS site: 

JackP_1-1649843080778.png

 

In the DevOps I have the license type: Basic + Test Plans together with following permissions:

JackP_6-1649843514192.png

 

I can delete test cases manually in DevOps.

 

Can you please advise me what can be the issue here?  Is there any way to modify my DevOps http request? 

 

Thank you

Jacek

  • v-yujincui-msft Profile Picture
    on at
    Re: DevOps HTTP request to delete test case or work item returns error TF400813 error

    Hi @JackP ,

     

    Thanks for sharing.

    Glad to see you solved the problem.
    You could mark your answer as a 'solution' to close the case.

     

    Best Regards,
    Charlie Choi

  • Verified answer
    JacekP Profile Picture
    31 on at
    Re: DevOps HTTP request to delete test case or work item returns error TF400813 error

    Hi,

     

    I found the solution so the topic can be closed. 

    The workaround for above issue is to send POST Http request instead of DELETE with different URI ($batch):

    1. Do delete the work item:

    JackP_0-1649858382748.png

     

    2. If the work item is connected with test plan/ test suite, then before deleting, it should be removed from test suite:

    JackP_1-1649858535703.png

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics