const data = {
name: 'my list',
organisationId: 'abc123',
environments: [
{
options: [
{
label: 'One'
value: '1'
},
{
label: 'Two'
value: '2'
}
]
formsAppEnvironmentId: 1,
},
],
type: 'STATIC',
}
const list = await formElementListsClient.createFormElementList(data)
// Use list here...
The data for the new list
const searchParams = {
limit: 1,
offset: 0,
}
const { formElementLists, meta } =
await formElementListsClient.searchFormElementLists(searchParams)
Search options
const data = {
id: 1,
name: 'my list',
organisationId: 'abc123',
environments: [
{
options: [
{
label: 'One'
value: '1'
},
{
label: 'Two'
value: '2'
},
{
label: 'Three'
value: '2'
},
]
formsAppEnvironmentId: 1,
},
],
type: 'STATIC',
}
const list = await formElementListsClient.updateFormElementList(data)
// Use list here...
The data for the list to update
Example