Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

200
Visualizações
Postman - transfer response array as a variable in request body

I have a GET api call which returns the following response:

{
  "transId": "01",
  "Products": [
    {
      "ProductID": "02",
      "ProductName": "Berry"
    },
    {
      "ProductID": "01",
      "ProductName": "Apple"
    }
  ]
}

and I wanted the ProductNames to be automatically included in the body of another API request whenever I retrieve that response from that API. (as a variable or something)

{
  "ProductsList": [
    {
      "ProductName": "Berry"
    },
    {
      "ProductName": "Apple"
    }
  ]
}

May I know what should be placed in the Tests portion of the first API to achieve the placing of the product names depending on the number of the products returned, to the body of the second API?

Should be able to have the array be inside the ProductsList array body.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda