MCPcopy Create free account
hub / github.com/O365/python-o365 / update

Method update

O365/tasks_graph.py:510–529  ·  view source on GitHub ↗

Update this folder. Only name can be changed. :return: Success / Failure :rtype: bool

(self)

Source from the content-addressed store, hash-verified

508 return self.folder_id == other.folder_id
509
510 def update(self):
511 """Update this folder. Only name can be changed.
512
513 :return: Success / Failure
514 :rtype: bool
515 """
516 if not self.folder_id:
517 return False
518
519 url = self.build_url(
520 self._endpoints.get(CONST_FOLDER).format(id=self.folder_id)
521 )
522
523 data = {
524 self._cc("displayName"): self.name,
525 }
526
527 response = self.con.patch(url, data=data)
528
529 return bool(response)
530
531 def delete(self):
532 """Delete this folder.

Callers

nothing calls this directly

Calls 4

build_urlMethod · 0.80
_ccMethod · 0.80
getMethod · 0.45
patchMethod · 0.45

Tested by

no test coverage detected