Unshares the project. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project`
(self)
| 626 | ) |
| 627 | |
| 628 | def unshare(self): |
| 629 | """ |
| 630 | Unshares the project. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project` |
| 631 | """ |
| 632 | self._assert_permission() |
| 633 | requests.put( |
| 634 | f"https://api.scratch.mit.edu/proxy/projects/{self.id}/unshare/", |
| 635 | headers=self._json_headers, |
| 636 | cookies=self._cookies, |
| 637 | ) |
| 638 | |
| 639 | ''' doesn't work. the API's response is valid (no errors), but the fields don't change |
| 640 | def move_to_trash(self): |
nothing calls this directly
no test coverage detected