Yes, you can retrieve option types and their related data using the CM API.
To retrieve all option types:
Send a GET request to the following endpoint: https://{{institution}}.kuali.co/api/cm/options/types
This will return a list of all option types, along with their details. For example,
"name": "Evaluation Method",
"label": "Evaluation Method",
"header": "Evaluation Method",
"placeholder": "Evaluation Method",
"type": "optiontypes",
"active": true,
"locale": "en-US",
"createdAt": "2021-05-25T20:41:24.072Z",
"updatedAt": "2023-01-19T15:09:28.072Z",
"fields": [],
"id": "60ad60f45ec81b89dc842091",
"parentOptionType": null,
"translatedNames": null
}
To retrieve options within a specific type (e.g., “Grading Options”):
Append the type name to the same endpoint:
https://{{institution}}.kuali.co/api/cm/options/types/Grading%20Options
This will return only the options under that type. For example:
{
"name": "Pass/Fail",
"type": "Grading Options",
"active": true,
"locale": "en-US",
"createdAt": "2021-06-21T15:52:06.020Z",
"updatedAt": "2021-06-21T15:52:06.020Z",
"id": "60d0b5a6dcd3677a56252f96"
}
Note: When you are referencing option types by title, and the title contains a space - you must replace the space with %20 or it will not return any results.
Comments
0 comments
Article is closed for comments.