Skip to content

Commit 2bcdccd

Browse files
committed
fix: update headers in create project request to include organization GUID
1 parent 3db7c07 commit 2bcdccd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rapyuta_io_sdk_v2/client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,13 @@ def create_project(self, body: Project | dict, **kwargs) -> Project:
343343
if isinstance(body, dict):
344344
body = Project.model_validate(body)
345345

346+
org_guid = body.metadata.organizationGUID or None
347+
346348
result = self.c.post(
347349
url=f"{self.v2api_host}/v2/projects/",
348-
headers=self.config.get_headers(with_project=False, **kwargs),
350+
headers=self.config.get_headers(
351+
organization_guid=org_guid, with_project=False, **kwargs
352+
),
349353
json=body.model_dump(),
350354
)
351355
handle_server_errors(result)

0 commit comments

Comments
 (0)