Skip to content

Overwrite the header values #611

Answered by thim81
LindoZondo asked this question in Q&A
Jul 15, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

hi @LindoZondo

Best starting point is the overwriteRequestHeaders docs and the overwrite examples

Using the example of the overwriteRequestHeaders Portman directive, you would overwrite the request header for the specific leadsUpdate endpoint, where the key would point to the Header you wish to overwrite and value the new value you want to set:

{
  "overwrites": [
    {
      "openApiOperationId": "leadsUpdate",
      "overwriteRequestHeaders": [
        {
          "key": "x-apideck-consumer-id",
          "value": "portman-id-{{$randomInt}}",
          "overwrite": true
        }
      ]
    }
  ]
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@LindoZondo
Comment options

@thim81
Comment options

@LindoZondo
Comment options

Answer selected by thim81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants