I am stuck trying manually create a custom connector from an Azure Function, but I get an error message of "Label and key in API Key can not be empty". In the Security section of the Custom Connector wizard, I set the Authentication Type as "API Key". And I set the Parameter Label to "APIKEY", Parameter Name="code" and Parameter Location="Query". The error message occurs when I click the Create Connector button.
I'm curious what this error message is actually refering to? Is it something in my Swagger defintion (see below) or the configuration of the connector?

swagger: '2.0'
info:
title: docfluixdemofunctionapp.azurewebsites.net
version: 1.0.0
schemes:
- https
host: docfluixdemofunctionapp.azurewebsites.net
basePath: /
paths:
/api/GetPerDiemByZip:
post:
operationId: GetPerDiemByZip
summary: Get Hotel and Meal Per Diem amounts from GSA
description: GSA Per Diem
x-ntx-summary: GSA Per Diem
x-ms-summary: GSA Per Diem
x-ms-visibility: important
produces:
- application/json
consumes:
- application/json
parameters:
- name: body
in: body
description: Zipcode and Tripdate to query Per Diem amounts from GSA
x-ntx-summary: Zipcode and Tripdate
x-ms-summary: Zipcode and Tripdate
x-ms-visibility: important
required: true
schema:
type: object
properties:
Zip:
type: string
description: Zip code for primary destination of the trip
x-ntx-summary: Zip code
x-ms-summary: Zip code
x-ms-visibility: important
TripDate:
type: string
description: Date of the first day of the trip
x-ntx-summary: Trip Start Date
x-ms-summary: Trip Start Date
x-ms-visibility: important
responses:
'200':
description: Returns Per Diem Amounts for Hotel and Meals
x-ms-summary: Per Diem Amounts
schema:
type: object
properties:
Hotel:
type: number
description: Allowed Hotel Per Diem
x-ntx-summary: Hotel
x-ms-summary: Hotel
Meals:
type: number
description: Allowed Meals Per Diem
x-ntx-summary: Meals
x-ms-summary: Meals
security:
- apikeyQuery: []
definitions: {}
securityDefinitions:
apikeyQuery:
type: apiKey
name: code
in: query