MissingApiVersionParameter

api-version query parameter 26 Reputation points
2020-08-27T15:34:17.097+00:00

When i add some entry in queries section of POST in azure logic app

"error": {
"code": "MissingApiVersionParameter",
"message": "The api-version query parameter (?api-version=) is required for all requests."

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,829 questions
{count} votes

2 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 68,391 Reputation points
    2020-08-28T06:26:02.27+00:00

    Hi @api-version query parameter

    You need to pass "api-version=" whenever you are using the trigger "When a HTTP request is received" as this is required when you are calling the API.

    If you copy the HTTP Post URL you will see the value as below:
    https://{prod}.{region}.logic.azure.com:443/workflows/{workflow}/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig={sign}

    If you are making POST (any) call from your application then you need to pass this value else it will result in 400 error as
    {"error":{"code":"MissingApiVersionParameter","message":"The api-version query parameter (?api-version=) is required for all requests."}}

    21171-image.png

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    2 people found this answer helpful.

  2. Marek Tarnoci 1 Reputation point
    2022-08-18T09:58:24.147+00:00

    Hi, I'm getting same error, when I'm using Terraform azapi provider to create resources:

    {"error":{"code":"MissingApiVersionParameter","message":"The api-version query parameter (?api-version=) is required for all requests."}}

    azapi_resource.nva_create_black[0]: Still creating... [12m0s elapsed]

    │ Error: creating/updating "Resource: (ResourceId \"/subscriptions/154008ce-c58f-4e1f-ab0c-c73169d70c22/resourceGroups/ngena-cor-rg-norwayeast/providers/Microsoft.Network/networkVirtualAppliances/ng-cor-nva-norwayeast\" / Api Version \"2022-01-01\")": GET https://management.azure.com/subscriptions/154008ce-c58f-4e1f-ab0c-c73169d70c22/providers/Microsoft.Network/locations/norwayeast/nfvOperations/c5455ea7-f927-4b34-9be3-6d1e95888a63
    │ --------------------------------------------------------------------------------
    │ RESPONSE 200: 200 OK
    │ ERROR CODE: GatewayError
    │ --------------------------------------------------------------------------------
    │ {
    │ "status": "Failed",
    │ "error": {
    │ "code": "GatewayError",
    │ "message": ""
    │ }
    │ }
    │ --------------------------------------------------------------------------------


    │ with azapi_resource.nva_create_black[0],
    │ on TEST-DAY0-NVA.tf line 145, in resource "azapi_resource" "nva_create_black":
    │ 145: resource "azapi_resource" "nva_create_black" {


    I'm using API version in resource definition: like described here:
    https://learn.microsoft.com/en-us/azure/templates/microsoft.network/networkvirtualappliances?pivots=deployment-language-terraform#virtualapplianceskuproperties-2

    resource "azapi_resource" "nva_create_black" {
    type = "Microsoft.Network/networkVirtualAppliances@2022-01-01"

    any suggestion?

    0 comments No comments