REST API api/v1/accounts/unmsisimport - The specified resource does not exist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2021
02:02 PM
Using POST api/v1/accounts/unmsisimport with API LIVE and response is 'The specified resource does not exist' (404 error). Where to see account_id in Admin GUI?
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2021
02:25 PM
This should be visible when opening the Admin Tray, clicking on the Top Level Account for your instance (your school), or going to 'All Accounts' and viewing it there. It will be in the URL.
In the Browser's Developer Tools, ENV.ACCOUNT.id will return the ID, via the Javascript Console.
If you're a root admin, the first result should be found in /api/v1/accounts
Also note that if you're doing root level account api calls, 'self' can be replaced for the account_id.
https://canvas.instructure.com/doc/api/file.object_ids.html
- Accounts support
self
to mean the root account for the current domain,default
to mean the Default account, andsite_admin
to mean the Site Admin account.