MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / unshare

Method unshare

scratchattach/site/project.py:628–637  ·  view source on GitHub ↗

Unshares the project. You can only use this function if this object was created using :meth:`scratchattach.session.Session.connect_project`

(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

_assert_permissionMethod · 0.95
putMethod · 0.80

Tested by

no test coverage detected