LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithresourcessessionsAsyncSessionsResourceupdate
Method●Since v0.14Deprecated

update

Copy
update(
  self,
  project_id: str,
  *,
  default_dataset_id: Optional[str
View source on GitHub
]
|
Omit
=
omit
,
description
:
Optional
[
str
]
|
Omit
=
omit
,
end_time
:
Union
[
str
,
datetime
,
None
]
|
Omit
=
omit
,
extra
:
Optional
[
Dict
[
str
,
object
]
]
|
Omit
=
omit
,
longlived_ttl_days
:
Optional
[
int
]
|
Omit
=
omit
,
name
:
Optional
[
str
]
|
Omit
=
omit
,
trace_tier
:
Optional
[
Literal
[
'longlived'
,
'shortlived'
]
]
|
Omit
=
omit
,
extra_headers
:
Headers
|
None
=
None
,
extra_query
:
Query
|
None
=
None
,
extra_body
:
Body
|
None
=
None
,
timeout
:
float
|
httpx
.
Timeout
|
None
|
NotGiven
=
not_given
)
->
TracerSession

Parameters

NameTypeDescription
longlived_ttl_daysOptional[int] | Omit
Default:omit

Retention in days for traces while trace_tier is longlived. One of the deployment's allowed values (allowed_longlived_ttl_days in /info), up to the maximum of the deployment. The value is kept while trace_tier is shortlived. Null means the project uses the workspace retention. Omit the field to keep the current value.

extra_headersHeaders | None
Default:None

Send extra headers

extra_queryQuery | None
Default:None
extra_bodyBody | None
Default:None
timeoutfloat | httpx.Timeout | None | NotGiven
Default:not_given

Update a project.

Deprecated: use PATCH /api/v2/sessions/{session_id}.

The v1 endpoint is scheduled for removal on Jul 1, 2027.

Add additional query parameters to the request

Add additional JSON properties to the request

Override the client-level default timeout for this request, in seconds