Content Types
Some data models are generically associated with multiple other models. When this occurs, the model will have a field called content_type_id
.
To reference the content_type_id
back to a data model, you will need to use the RAW endpoint /api/v1/raw/contenttypes/contenttype/
.
Example - List Models By Content Type ID
let
// Start by creating an M list containing the names of all the fields you want to query
Fields = {"id","app_label","model"},
// Then create an M list containing the display names for the corresponding fields you want to query
DisplayNames = {"Content Type Id","App Name","Model Name"},
// Now pass both the field and display name lists into the Vitruvi function
Table = fVitruviPagedQuery("/api/v1/raw/contenttypes/contenttype/", 3000, null, Fields, DisplayNames)
in
Table
Updated over 1 year ago