---
updatedAt: 2025-08-06T08:52:15.000Z
agentTools:
  projectIndex: https://developers.getswym.com/llms.txt
---

# List Config

Configure your list creation.

A simple Javascript object containing parameters required for creating a new list

```javascript
let listConfig = {
  "lname": "Todo List", // list name
  "lty": "wl", // List type  wl - wishlist, sfl - save for later
  "fromlid": "list Id", // list id to duplicate from
  "lnote": "This list is for my todo list", // optional note
  "lprops": {} // optional. Map of custom fields
};
```
```curl Rest
--data-urlencode 'lname={{lname}}' \
--data-urlencode 'lty={{lty}}' \
--data-urlencode 'fromlid={{fromlid}}' \
--data-urlencode 'lnote={{lnote}}' \
--data-urlencode 'lprops={{JSON stringified lprops}}' \
```

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Argument
      </th>

      <th style={{ textAlign: "left" }}>
        Type
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        listConfig.lname
      </td>

      <td style={{ textAlign: "left" }}>
        string
      </td>

      <td style={{ textAlign: "left" }}>
        List name - unique for a given user, allows 3-50 characters.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        listConfig.lty\
        (optional)
      </td>

      <td style={{ textAlign: "left" }}>
        string
      </td>

      <td style={{ textAlign: "left" }}>
        specifies the type of list you want to create, wl - wishlist, sfl - save for later, this is used to create a different type of list separate from the wishlist
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        listConfig.fromlid\
        (optional)
      </td>

      <td style={{ textAlign: "left" }}>
        string
      </td>

      <td style={{ textAlign: "left" }}>
        List id to duplicate from, lname has to be different from original list
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        listConfig.lnote (optional)
      </td>

      <td style={{ textAlign: "left" }}>
        string
      </td>

      <td style={{ textAlign: "left" }}>
        Optional note.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        listConfig.lprops\
        (optional)
      </td>

      <td style={{ textAlign: "left" }}>
        object
      </td>

      <td style={{ textAlign: "left" }}>
        Optional. Map of custom fields
      </td>
    </tr>
  </tbody>
</Table>