Azure - Logic apps: adding a header to a custom connector

Jan de Mul 40 Reputation points
2024-05-23T10:07:04.4866667+00:00

I'm using a custom connector to send a series of API requests. I need to add a header value to a GET function. I added as shown below but I don't think this is correct.

/api/stat/sites:
    get:
      summary: stat/sites
      description: stat/sites
      operationId: Stat_sites
      parameters:
        - name: Cookie
          in: header
          type: string
      responses:
        default:
          description: default
          schema: {}

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

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 18,776 Reputation points
    2024-05-30T05:34:31.5866667+00:00

    @Jan de Mul Thanks for reaching out. The only way to define a cookie parameter for OpenAPI 2.0 is using parameter type header.

    Sample example:

    parameters:
      - name: Cookie
        in: header
        type: string
        required: true
    
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.