Thanks @chriscas for the quick response. I have already checked and this permission doesn't are in consideration while we use rest api. I talked to canvas support as well. They replied, we are seeing a 401 error when trying to restore a course using the API. The 401 being seen will occur when a course has a SIS ID. When a course has a SIS ID, there are implicit assumption in Canvas that the course is managed by SIS (i.e. CSV uploads). As part of this, deleted courses with a SIS ID are intentionally disallowed from being updated via API. This is why 401 errors are being returned in this circumstance.
... View more