Class SessionUpdateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class SessionUpdateParams implements Params
Update Session
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSessionUpdateParams.BuilderA builder for SessionUpdateParams.
public final classSessionUpdateParams.BodyRequest parameters for updating a
session. Omit a field to preserve its current value.public final classSessionUpdateParams.MetadataMetadata patch. Set a key to a string to upsert it, or to null to delete it. Omit the field to preserve.
-
Method Summary
Modifier and Type Method Description final Optional<String>sessionId()final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send managed-agents-2026-04-01in this header.final Optional<String>workspaceId()Optional header to select the Workspace for this request. final Optional<BetaManagedAgentsSessionAgentUpdate>agent()Agent configuration update. final Optional<BetaManagedAgentsBudgetLimit>budget()Enforced spend ceiling for the session. final Optional<SessionUpdateParams.Metadata>metadata()Metadata patch. final Optional<String>title()Human-readable session title. final Optional<List<String>>vaultIds()Vault IDs ( vlt_*) to attach to the session.final JsonField<BetaManagedAgentsSessionAgentUpdate>_agent()Returns the raw JSON value of agent. final JsonField<BetaManagedAgentsBudgetLimit>_budget()Returns the raw JSON value of budget. final JsonField<SessionUpdateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_title()Returns the raw JSON value of title. final JsonField<List<String>>_vaultIds()Returns the raw JSON value of vaultIds. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final SessionUpdateParams.BuildertoBuilder()final SessionUpdateParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static SessionUpdateParamsnone()final static SessionUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of SessionUpdateParams. -
-
Method Detail
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
managed-agents-2026-04-01in this header.
-
workspaceId
final Optional<String> workspaceId()
Optional header to select the Workspace for this request. The value is a Workspace ID (for example,
wrkspc_011CZkZaBF1tNoB5wlCeusgy).Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
-
agent
final Optional<BetaManagedAgentsSessionAgentUpdate> agent()
Agent configuration update. Only
toolsandmcp_serversare updatable mid-session. Only valid for sessions created from an agent or deployment reference. The session must not be running.
-
budget
final Optional<BetaManagedAgentsBudgetLimit> budget()
Enforced spend ceiling for the session. Set an object to replace the budget of a session that was created with one, or
nullto remove it; omit to preserve. A budget cannot be added to a session created without one (rejected with reasonbudget_create_only), and a removed budget cannot be re-added. Allowed in any non-terminated status. Loweringmax_list_costto at or below the session's consumed list cost is rejected with reasonbudget_not_raised, and every model the session can run must have a public list price or the request is rejected with reasonmodel_not_budgetable.
-
metadata
final Optional<SessionUpdateParams.Metadata> metadata()
Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omit the field to preserve.
-
vaultIds
final Optional<List<String>> vaultIds()
Vault IDs (
vlt_*) to attach to the session. Not yet supported; requests setting this field are rejected. Reserved for future use.
-
_agent
final JsonField<BetaManagedAgentsSessionAgentUpdate> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_budget
final JsonField<BetaManagedAgentsBudgetLimit> _budget()
Returns the raw JSON value of budget.
Unlike budget, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<SessionUpdateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_title
final JsonField<String> _title()
Returns the raw JSON value of title.
Unlike title, this method doesn't throw if the JSON field has an unexpected type.
-
_vaultIds
final JsonField<List<String>> _vaultIds()
Returns the raw JSON value of vaultIds.
Unlike vaultIds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final SessionUpdateParams.Builder toBuilder()
-
_body
final SessionUpdateParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
none
final static SessionUpdateParams none()
-
builder
final static SessionUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of SessionUpdateParams.
-
-
-
-