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 / The API operation 'Cre...
Power Automate
Answered

The API operation 'CreateTeam' requires the property 'body' to be of type 'String' but is of type 'Object'.'

(1) ShareShare
ReportReport
Posted on by 265

So I moved my working flow to a new tenant and discovered that MFA was required and found out that I must make a Custom Connector which can store logins and thus handle MFA.

The great news: I have made the CC and the Team gets created using the connector in the flow (Test in the CC also is succesful)

The bad news: I get the error below and the rest of my flow fails:

The API 'iw-20graph-20connector-5f6488149dd6d8968a-5f670f56d6dd614cb0' returned an invalid response for workflow operation 'Create_a_Microsoft_Team' of type 'OpenApiConnection'. Error details: 'The API operation 'CreateTeam' requires the property 'body' to be of type 'String' but is of type 'Object'.'

 

 

The Error in GUI:

ThomasDK_0-1640795265177.png

 

 

Now, I have searched this board for answers and seen some posts like mine, but the answers does not help me. I hope you can give a clue, so I can get it to work. The error saies that the body should be of type "String" and not "Object". Is that determined by the header, which is configured like this in the CC:

ThomasDK_2-1640795557192.png

 

I even created a policy to force this header (it made no difference):

ThomasDK_3-1640795636276.png

 

Then I looked in the swagger editor to see if the code had been changed. It looks fine and the "scheme" is set to "String", as can be seen here:

 

ThomasDK_1-1640795455377.png

 

 

I hope you can tell me what is wrong with my API response.

 

Best regards,

Thomas

 

 

Categories:
I have the same question (0)
  • ThomasDK Profile Picture
    265 on at

    Hi all,

     

    I still haven't found a solution to this problem. It's probably a small thing, but I can't see what is wrong.

     

    Br,

    Thomas

  • Verified answer
    ThomasDK Profile Picture
    265 on at

    I have now resolved this by removing my custom connector from the flow and adding it again. I think that I also could have disconnected and reconnected the connector under "Connectors".

  • matheusosa Profile Picture
    3 on at

    Yes! What I did was:

    - Created a new connection and assigned it to all my actions that used it. Then, after saving it, I deleted the old connections. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard