Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions langfuse/api/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5222,7 +5222,6 @@ client = FernLangfuse(
client.projects.update(
project_id="projectId",
name="name",
retention=1,
)

```
Expand Down Expand Up @@ -5255,15 +5254,20 @@ client.projects.update(
<dl>
<dd>

**retention:** `int` — Number of days to retain data. Must be 0 or at least 3 days. Requires data-retention entitlement for non-zero values. Optional.
**metadata:** `typing.Optional[typing.Dict[str, typing.Any]]` — Optional metadata for the project

</dd>
</dl>

<dl>
<dd>

**metadata:** `typing.Optional[typing.Dict[str, typing.Any]]` — Optional metadata for the project
**retention:** `typing.Optional[int]`

Number of days to retain data.
Must be 0 or at least 3 days.
Requires data-retention entitlement for non-zero values.
Optional. Will retain existing retention setting if omitted.

</dd>
</dl>
Expand Down
24 changes: 14 additions & 10 deletions langfuse/api/resources/projects/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def update(
project_id: str,
*,
name: str,
retention: int,
metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
retention: typing.Optional[int] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Project:
"""
Expand All @@ -182,12 +182,15 @@ def update(

name : str

retention : int
Number of days to retain data. Must be 0 or at least 3 days. Requires data-retention entitlement for non-zero values. Optional.

metadata : typing.Optional[typing.Dict[str, typing.Any]]
Optional metadata for the project

retention : typing.Optional[int]
Number of days to retain data.
Must be 0 or at least 3 days.
Requires data-retention entitlement for non-zero values.
Optional. Will retain existing retention setting if omitted.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand All @@ -210,7 +213,6 @@ def update(
client.projects.update(
project_id="projectId",
name="name",
retention=1,
)
"""
_response = self._client_wrapper.httpx_client.request(
Expand Down Expand Up @@ -698,8 +700,8 @@ async def update(
project_id: str,
*,
name: str,
retention: int,
metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
retention: typing.Optional[int] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Project:
"""
Expand All @@ -711,12 +713,15 @@ async def update(

name : str

retention : int
Number of days to retain data. Must be 0 or at least 3 days. Requires data-retention entitlement for non-zero values. Optional.

metadata : typing.Optional[typing.Dict[str, typing.Any]]
Optional metadata for the project

retention : typing.Optional[int]
Number of days to retain data.
Must be 0 or at least 3 days.
Requires data-retention entitlement for non-zero values.
Optional. Will retain existing retention setting if omitted.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand Down Expand Up @@ -744,7 +749,6 @@ async def main() -> None:
await client.projects.update(
project_id="projectId",
name="name",
retention=1,
)


Expand Down
Loading