I get a 500 Internal Server Error when trying to create a demographics field via the POST...

Options
Jessica.Duarte4665
Jessica.Duarte4665 Posts: 2 🌱
edited November 2022 in Development

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

  • Jessica.Duarte4665
    Jessica.Duarte4665 Posts: 2 🌱
    edited November 2022
    Options

    I figured it out! The DataTypeId needed to correspond to an actual DataTypeId that I got from calling the "demographics/dataTypes/" endpoint