list
Return JSON is formatted in the following style:
{ "DATA_MODEL_NAME": { "FIELD_KEY": { "FIELD_KEY_VALUE": "FIELD_STRING_VALUE", "FIELD_KEY_VALUE": "FIELD_STRING_VALUE", }, "FIELD_KEY": { "FIELD_STRING_VALUE", "FIELD_STRING_VALUE" } }, "DATA_MODEL_NAME": { ... } }
- "DATA_MODEL_NAME" is the name of the model that uses the listed "FIELD_KEY"s. Such as "EreFile".
- "FIELD_KEY" is the name of the key on the model that uses the listed "FIELD_KEY_VALUE"s or "FIELD_STRING_VALUE"s. Such as the "document_type" field on the "EreFile" model.
- When a "FIELD_KEY" has "FIELD_KEY_VALUE"s and "FIELD_STRING_VALUE"s it uses an ID as the field value that represents the "FIELD_STRING_VALUE". When "FIELD_KEY" is just a list of "FIELD_STRING_VALUE" then it uses the strings as the field values (such as the "EreFileList" "date_type" field).
A good example of a use case for this endpoint is to make sure you always have an updated list of document types that can be uploaded to the ERE when using the EreFile endpoints. The returned data on the "EreFile" key for this endpoint has the "document_type" key which provides a list of all the document types that can currently be uploaded to the ERE. The ERE will make changes to this list without notification but by checking this endpoint you can be sure you are offering all the latest document types to the user that we support uploading to the ERE without having to manually update your own lists when changes are made.
method | GET |
endpoint | /api/v4/data-types |
return | View Full JSON Response Here |