MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / update_snippet

Method update_snippet

src/bcf/bcf/v3/bcfapi.py:299–309  ·  view source on GitHub ↗
(self, project_id: str = "", topic_id: str = "", files: Any = None, data: Any = None)

Source from the content-addressed store, hash-verified

297 return response.status_code, content
298
299 def update_snippet(self, project_id: str = "", topic_id: str = "", files: Any = None, data: Any = None) -> int:
300 headers = {
301 "Authorization": f"Bearer {self.foundation_client.get_access_token()}",
302 "Content-type": "application/octet-stream",
303 }
304
305 response = requests.put(
306 f"{self.baseurl}/projects/{project_id}/topics/{topic_id}/snippet", headers=headers, files=files
307 )
308
309 return response.status_code
310
311 def get_files_information(self, project_id: str = "") -> list[Any]:
312 return self.get(

Callers

nothing calls this directly

Calls 2

putMethod · 0.80
get_access_tokenMethod · 0.45

Tested by

no test coverage detected