Testing Brightspace API - Create Folder in Manage Files

Rim.Z.380
Rim.Z.380 Posts: 10 🌱
edited June 9 in Development

Hello

So I've been trying to test APIs to create folders in manage files of a course, and then try to upload a file into the,m and I can't seem to get the api to work on Postman.

This is my Create folder api, which I created using the Valence documentation. Is there something I've done wrong here? I keep getting the 404 error.

My scopes are content:*:* core:*:* managefiles:*:*

image.png
Tagged:

Best Answer

  • Rim.Z.380
    Rim.Z.380 Posts: 10 🌱
    Answer ✓

    Hello again,

    I just tested with a higher lp version and that seems to have worked. I have been using 1.28 for all my api calls and they were working fine but for this one I guess it has to be changed to 1.43 or higher.

    Thanks

Answers

  • Victor.B.4864
    Victor.B.4864 Posts: 11 🤝🏼 image

    Hi Rim,

    The 404 error indicates something is wrong with the URL you are trying to use.

    Can you replace the variables you are using with their actual value so I can further investigate?

    I have tried this API endpoint in our test server, and it worked fine. Please see the screenshot with the values I used:

    image.png

    Best Regards,

    Victor

  • Rim.Z.380
    Rim.Z.380 Posts: 10 🌱

    Hello,

    I tried using the hardcoded url as advised, I am still getting the same error. I double-checked the orgunitID on owlhatchery and it is right.

    image.png