Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8520715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:36:30+00:00 2026-06-11T06:36:30+00:00

Whenever I make a GET call to /d2l/api/le/(D2LVERSION: version)/(D2LID: orgUnitId)/content/modules/(D2LID: moduleId)/structure/ I get a

  • 0

Whenever I make a GET call to “/d2l/api/le/(D2LVERSION: version)/(D2LID: orgUnitId)/content/modules/(D2LID: moduleId)/structure/” I get a list of content in the provided moduleId structure. However, when I make a POST call I get a Page Not Found error. I’ve replaced the orgUnitId with the id of the course I want to add content to and replaced the moduleId with the id of the module I want to insert the content into. Here is the JSON block I’m sending:

{"StartDate":null,
"Title":"My Test File",
"Type":1,
"ShortTitle":"MTF",
"TopicType":3,
"EndDate":null,
"IsHidden":false,
"Url":"http://somecollege.edu/",
"IsLocked":false}

I don’t understand why I get the page not found error on the post and not on the get. Anyone have any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:36:32+00:00Added an answer on June 11, 2026 at 6:36 am

    We were able to successfully post a similar link-topic on our test server. The HTTP packet (captured by wireshark) looks like this:

    POST /d2l/api/le/1.2/8083/content/modules/24980/structure/?x_t={timestamp}&x_a={app_id}&x_b={user_id}&x_d={user_sig}&x_c={app_sig} HTTP/1.1\r\n
    Host: {test_hostname}\r\n
    Content-Length: 186\r\n
    Content-Type: application/json\r\n
    Accept-Encoding: identity, deflate, compress, gzip\r\n
    Accept: */*\r\n
    \r\n
    
    JavaScript Object Notation: application/json
    Object
        Member Key: "StartDate"
            Null value
        Member Key: "TopicType"
            Number value: 3
        Member Key: "ShortTitle"
            String value: MTF
        Member Key: "Title"
            String value: My Test File
        Member Key: "Url"
            String value: http://www.desire2learn.com/
        Member Key: "IsHidden"
            False value
        Member Key: "IsLocked"
            False value
        Member Key: "EndDate"
            Null value
        Member Key: "Type"
            Number value: 1
    

    Here is what the JSON data looks like printed out as the UTF-8 string sent:

    {"StartDate": null, "TopicType": 3, "ShortTitle": "MTF", "Title": "My Test File", "Url": "http://www.desire2learn.com/", "IsHidden": false, "IsLocked": false, "EndDate": null, "Type": 1}
    

    I see no significant difference between our JSON and yours, so the problem likely lies with the packet that you’re actually sending out. A 404 would suggest that the route you’re using is not exactly as it should be (for example, there should be a trailing slash after ‘structure’ in the route).

    It’s also possible that you’re running into a permissions issue for the user-context making the call. Notice that the role permissions for viewing course content (and structure) are different to the permissions for creating and managing course content. You should ensure that the user context making the call has a role that grants it the appropriate permissions for not only viewing course content, but creating and managing content as well.

    If neither of these suggestions helps, then I suggest escalating to the next level of support (open an issue with D2L’s issue tracker for Valence, or contact the Valence support email address) so they can help you out more directly and with more detail back and forth.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whenever we make a call to any action controller whether through a full post
Whenever I learn a new language/framework, I always make a content management system... I'm
I am trying to run my application, but whenever I make a call to
I would like to change the dropdown list and whenever I make some changes
My whole page is loading again whenever I make a ajax call to load
Whenever I make the me/photos call to the Facebook server in my iOS app,
Whenever i make a change in the objects in the first tab of my
Whenever we make a release of a project we'll create a tag to capture
Whenever I make changes to my app, nodemon restarts the whole app, but every
I have a static Web project added to an Apache server. Whenever I make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.