Momentum AMS REST API: Custom Fields

Insert custom panels and fields (the structure):


In the interface of Momentum AMS, you can do this from the main navigation menu: "MISCELLANEOUS"

--> "Agency Customization" --> "Custom Fields"


1. POST http://api.nowcerts.com/api/CustomPanel/Insert


Tables can't be imported directly. Please insert an image of your table which can be found here.

     This will insert only if there isn’t a panel with the same name in your account, otherwise, it will update the existing panel and insert newly created custom fields.     The body need to be Collection of CustomPanels:

     Note: "Name" is a required field
     This will be your panel with a Collection of Custom Fields.

     Custom Fields Collection:
                  Note: "Name" is a required field     Since this is collection, you can have multiple custom fields in a single panel. Every single Custom Field needs to have proper Type.     CustomFieldType:       Use only the "Value" we need integer representation of the type.      Example request with 2 CustomPanels:[  {    "name": "Car",    "description": "Car Panel",    "customFields": [      {        "name": "Model",        "description": "Car Model",        "type": 0,        "order": 1      },      {        "name": "Engine",        "description": "Car Engine",        "type": 0,        "order": 2      },      {        "name": "Horse Power",        "description": "Car Horse Power",        "type": 1,        "order": 3      }    ],    "order": 1  },  {    "name": "Car Rental",    "description": "Car Rental Diary",    "customFields": [      {        "name": "Car",        "description": "Car Model",        "type": 0,        "order": 1      },      {        "name": "Pick Up Date",        "description": "Pick Up Date",        "type": 4,        "order": 2      }    ],    "order": 2  }]


Insert new custom Field Values when creating new Insured:


2. POST http://api.nowcerts.com/api/Insured/Insert


Tables can't be imported directly. Please insert an image of your table which can be found here.

     Insured have collection of CustomFieldEdit object. This will insert value to existing Custom Panel and existing Custom Field. Note: If we can’t find panel or field with name you present this method will not create panel and field. Use http://api.nowcerts.com/api/CustomPanel/Insert to create your panels first.     The body need to be Collection of CustomFieldsEdit:      Note: Every panel can have multiple custom fields     This will be your panel with a collection of custom fields.     CustomFields Collection:      Note: Value you want to store in existing Field      Since this is collection, you can have multiple custom fields in single panel. Every single Custom Field need to have proper Value. Example request with 2 CustomPanels:"customFields": [    {      "custoPanelName": " Car Panel",      "customFields": [        {          "customFieldName": "Model",          "customFieldValue": "Ford Focus"        },        {          "customFieldName": "Engine",          "customFieldValue": "2.2"        }      ]    },    {      "custoPanelName": "Car Rental",      "customFields": [        {          "customFieldName": "Car Model",          "customFieldValue": "Ford Mustang"        },        {          "customFieldName": " Pick Up Date",          "customFieldValue": "2018-11-14T10:22:52.7777825+02:00"        }      ]    }  ] 


GET the created structure for Custom Panels and Fields:


3. GET http://api.nowcerts.com/api/CustomPanel/GetStructure


Tables can't be imported directly. Please insert an image of your table which can be found here.

     You can retrieve the structure of your Custom Panels and Fields using this method. Here's a link to the help page for the method:  https://api.nowcerts.com/Help/Api/GET-api-CustomPanel-GetStructureThe real friendly names of the panels and the fields are the ones our API is expecting when you use the Custom Fields in the method in 2. "Insured Insured".