I get a 500 Internal Server Error when trying to create a demographics field via the POST...
Jessica.Duarte4665
Posts: 2 🌱
I get a 500 Internal Server Error when trying to create a demographics field via the POST /d2l/api/lp/(version)/demographics/fields/ endpoint
The JSON I'm sending in the body via Postman is:
{
"Name": "IsEmployed",
"Description": "Are you employed?",
"DataTypeId": "{{$guid}}"
}
Tagged:
Answers
-
I figured it out! The DataTypeId needed to correspond to an actual DataTypeId that I got from calling the "demographics/dataTypes/" endpoint