---
title: Combine One to Many
slug: combine-one-to-many
docTags: 
createdAt: 2022-11-25T15:02:30.000Z
---

Combines or Merges items from combine list into every JSON Object of the input list. The substitution rules are used to define what the output should be like.



### API Definition

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://orca.pathfix.com/functions/list/combine_one_to_many",
  "name": "Combine One to Many API",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "28UsDqyeH3QRdmtVamSQT",
        "code": "{\n    \"output\": [\n        {\n\t\t\t\"user_id\": \"bruce@pathfix.com\",\n     \t\t\"company\": \"Pathfix\"\n\t\t},\n\t\t{\n\t\t\t\"user_id\": \"paul@pathfix.com\"\n            \"company\": \"Pathfix\"\n\t\t},\n\t\t{\n\t\t\t\"user_id\": \"chang@pathfix.com\"\n     \t\t\"company\": \"Pathfix\"\n\t\t}\n    ]\n}",
        "language": "200"
      },
      {
        "id": "yIX64DyIuDPJgBRFSfAWb",
        "code": "{\n    \"message\": \"error\"\n}",
        "language": "404"
      }
    ],
    "selectedLanguageId": "28UsDqyeH3QRdmtVamSQT"
  },
  "examples": {
    "languages": [
      {
        "id": "ENcJz9TStG38F0X-taA4x",
        "code": "{\r\n\t\"input\": [\r\n\t\t{\r\n\t\t\t\"user_id\": \"bruce@pathfix.com\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"user_id\": \"paul@pathfix.com\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"user_id\": \"chang@pathfix.com\"\r\n\t\t}\r\n\r\n\t],\r\n\t\"input_combine\": {\r\n\t\t\"company\": \"Pathfix\"\r\n\t},\r\n\t\"output\": {\r\n\t\t\"email\": \"{{input.user_id}}\",\r\n\t\t\"company\": \"{{input_combine.company}}\"\r\n\t}\r\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "ENcJz9TStG38F0X-taA4x"
  },
  "description": "\nCall the following API:",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::







