Unable to send section creation request via API

Derik.P.149
Derik.P.149 Posts: 22 Analytics Builder Transition

I am trying to create a section via the API but I'm running into issues. I think the server is interpreting my POST request as a GET request and failing to perform the operation I am requesting.

Would somebody please provide a full example of a successful section creation request that I can reference?

API route in question: https://docs.valence.desire2learn.com/res/groups.html#post--d2l-api-lp-(version)-(orgUnitId)-sections-

Thanks in advance.

Tagged:

Best Answer

  • Derik.P.149
    Derik.P.149 Posts: 22 Analytics Builder Transition
    Answer ✓

    Found the solution. Postman has a setting that changes the request type to a GET request when the server issues a redirect. This is the default behaviour, so I needed to enable the "Follow original HTTP method" setting.

Answers