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

Method create_document

src/bcf/bcf/v3/bcfapi.py:527–543  ·  view source on GitHub ↗
(
        self, project_id: str = "", topic_id: str = "", guid: Optional[str] = None, files: Any = None, data: Any = None
    )

Source from the content-addressed store, hash-verified

525 )
526
527 def create_document(
528 self, project_id: str = "", topic_id: str = "", guid: Optional[str] = None, files: Any = None, data: Any = None
529 ) -> int:
530 headers = {
531 "Authorization": f"Bearer {self.foundation_client.get_access_token()}",
532 "Content-type": "application/octet-stream",
533 }
534
535 response = requests.post(
536 f"/projects/{project_id}/topics/{topic_id}/documents",
537 data=data,
538 params={"guid": guid},
539 files=files,
540 headers=headers,
541 )
542
543 return response.status_code
544
545 def get_document(self, project_id: str = "", topic_id: str = "", document_id: str = "") -> tuple[int, str]:
546 headers = {

Callers

nothing calls this directly

Calls 2

get_access_tokenMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected