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 / Http Connector and Swa...
Power Automate
Unanswered

Http Connector and Swagger

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I’ve created a simple Azure Machine Learning model with its web service. I exported the swagger file and created custom API connector, which worked quite well. When I consume the connector inside a flow (Http Swagger Connector) it shows me the query values but never the request body json, which makes it impossible to enter the required payload.
Thanks


////////////////////////////
Used Swagger file:
{
"swagger": "2.0",
"info": {
"version": "2.0",
"title": "Global Loss Event Impact V2 [Predictive Exp.]",
"description": "No description provided for this web service."
},
"host": "europewest.services.azureml.net:443",
"basePath": "/workspaces/30a0ff4bxxxxxxxxxxxxx80b0/services/1f31xxxxxxx02a801acxxxxxc0",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/execute": {
"post": {
"summary": "Execute the web service and get a response synchronously",
"operationId": "execute",
"parameters": [{
"name": "api-version",
"in": "query",
"description": "The API version to use",
"required": true,
"type": "string",
"default": "2.0",
"enum": [
"2.0"
]
},
{
"name": "format",
"in": "query",
"description": "The format of the input to the web service",
"required": true,
"type": "string",
"default": "swagger",
"enum": [
"swagger"
]
},
{
"name": "body",
"in": "body",
"description": "Execution request",
"required": true,
"schema": {
"$ref": "#/definitions/ExecutionRequest"
}
}
],
"responses": {
"200": {
"description": "Execution results",
"schema": {
"$ref": "#/definitions/ExecutionResults"
}
}
},
"security": [{
"api_key": []
}]
}
}
},
"definitions": {
"ExecutionRequest": {
"title": "Execution request",
"properties": {
"Inputs": {
"$ref": "#/definitions/ExecutionInputs"
},
"GlobalParameters": {
"$ref": "#/definitions/GlobalParameters"
}
}
},
"ExecutionResults": {
"title": "Execution Results",
"properties": {
"Results": {
"$ref": "#/definitions/ExecutionOutputs"
}
}
},
"GlobalParameters": {
"title": "Global parameters definition",
"type": "object"
},
"ExecutionInputs": {
"title": "Execution inputs defintion",
"properties": {
"input1": {
"items": {
"$ref": "#/definitions/input1Item"
},
"type": "array"
}
},
"type": "object"
},
"ExecutionOutputs": {
"title": "Execution outputs defintion",
"properties": {
"output1": {
"items": {
"$ref": "#/definitions/output1Item"
},
"type": "array"
}
},
"type": "object"
},
"input1Item": {
"required": [
"EVENT_ID",
"Date",
"Country",
"Location",
"Latitude",
"Longitude",
"Magnitude",
"LossImpactUSD"
],
"properties": {
"EVENT_ID": {
"type": "string"
},
"Date": {
"type": "integer",
"format": "int32"
},
"Country": {
"type": "string"
},
"Location": {
"type": "string"
},
"Latitude": {
"type": "number",
"format": "double"
},
"Longitude": {
"type": "number",
"format": "double"
},
"Magnitude": {
"type": "number",
"format": "double"
},
"LossImpactUSD": {
"type": "integer",
"format": "int32"
}
}
},
"output1Item": {
"required": [
"Country",
"Location",
"Magnitude",
"LossImpactUSD",
"Scored Labels"
],
"properties": {
"Country": {
"type": "string"
},
"Location": {
"type": "string"
},
"Magnitude": {
"type": "number",
"format": "double"
},
"LossImpactUSD": {
"type": "integer",
"format": "int32"
},
"Scored Labels": {
"type": "number",
"format": "double"
}
}
}
},
"securityDefinitions": {
"api_key": {
"type": "apiKey",
"description": "For example: Bearer abc123",
"name": "Authorization",
"in": "header"
}
}
}

Categories:
I have the same question (0)
  • Leo09 Profile Picture
    212 on at

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

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard