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 / 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)
  • 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. 

  • 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".

  • 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

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
David_MA Profile Picture

David_MA 262 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 211 Most Valuable Professional

#3
trice602 Profile Picture

trice602 198 Super User 2025 Season 2

Last 30 days Overall leaderboard