Get API Error Message in PowerShell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2021
09:51 AM
Does anyone know the syntax for getting the text of a Canvas API error message in PowerShell?
For example, the Canvas Live API Response Body gives me the following message when I try to update an enrollment for an ended course:
{ "message": "Can't add an enrollment to a concluded course." }
How can I retrieve that message programmatically using PowerShell?
Thanks