Skip to content

Instantly share code, notes, and snippets.

@DuaneR5280
Last active October 1, 2025 17:34
Show Gist options
  • Select an option

  • Save DuaneR5280/9271182d4aaea2a2cdf1ed3e0f4c1343 to your computer and use it in GitHub Desktop.

Select an option

Save DuaneR5280/9271182d4aaea2a2cdf1ed3e0f4c1343 to your computer and use it in GitHub Desktop.
Morpheus Data: Edit Option List (plans)
/********* Edit Option List *************
Usage for
- TYPE: Morpheus API
- Request Options >> Option List: Plans
*****************************************/
// Translation Script (transform api data object)
for (var x = 0; x < data.length; x++) {
results.push({name:data[x].name, value:data[x].id});
}
// Request Script (filter options)
results = {
zoneId: 1,
siteId: 3,
layoutId: 212,
};
/***** Request Script alternative *****
results.zoneId = 1
results.siteId = 3
results.layoutId = 212
**************************************/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment