News Post api says Forbidden
logesh.ravichandran2898
Posts: 2 🌱
in Development
Hi i am trying to create the announcement/news in d2l but it throws 403 in postman
It was working two days back
API used : ${host}/d2l/api/le/1.61/${orgId}/news/
Could some one help me with this
Answers
-
Hi Logesh.
A few tips & tricks that have been helpful for me to verify.
- Ensure your call has “HTTPS://" in the domain name to begin with - if it's HTTP- you can do “GET” but you can not do Posts/Puts.
- Confirm if you are able to do a WhoAmI without issue.
- Confirming the application & Postman setup has the right scope to interact with the application (Link:
- Confirm the account you are using has permission to send/receive APIs
- Confirm the account has access to the tool in question (in this case, Announcements/News).
- More information is available in our permissions document (Link: )
- I always recommend doing a “GET” before a POST. If you can do the GET; your account has permission access
- Here is the syntax for the “POST” command: to create a new item
You will want to ensure your JSON includes the information from the necessary pieces you wish to post.
Let me know if these steps help in your journey!
Kind regards;
Bruce