web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / DevOps HTTP request to...
Power Automate
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

Categories:
I have the same question (0)
  • Verified answer
    JacekP Profile Picture
    31 on at

    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

     

     

  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 266 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 134 Super User 2026 Season 2

Last 30 days Overall leaderboard