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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / DevOps HTTP request to...
Power Automate
Unanswered

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard