Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

199
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda