(self, fields: Optional[List[str]] = None)
| 937 | |
| 938 | @api_error_handler |
| 939 | async def get_project(self, fields: Optional[List[str]] = None) -> Dict[str, Any]: |
| 940 | if not (self.sync_client.org_id and self.sync_client.project_id): |
| 941 | raise ValueError("org_id and project_id must be set to access instructions or categories") |
| 942 | |
| 943 | params = self.sync_client._prepare_params({"fields": fields}) |
| 944 | response = await self.async_client.get( |
| 945 | f"/api/v1/orgs/organizations/{self.sync_client.org_id}/projects/{self.sync_client.project_id}/", |
| 946 | params=params, |
| 947 | ) |
| 948 | response.raise_for_status() |
| 949 | capture_client_event("async_client.get_project", self.sync_client, {"fields": fields}) |
| 950 | return response.json() |
| 951 | |
| 952 | @api_error_handler |
| 953 | async def update_project( |
nothing calls this directly
no test coverage detected