Skip to main content
client.agent_vault.sessions.update() adds, changes, or removes a session’s label or metadata, for example to record what the agent is working on. You can change them after the session expires or is revoked, unless someone deleted the session’s owner or the user that the session was created on behalf of.

Parameters

str
required
The ID of the session.
Optional[str]
The new label, or None to remove the label (up to 128 characters, without line breaks, tabs, or invisible characters; leave it out to keep the current label).
Dict[str, str]
The new metadata, which replaces all of it, or {} to remove it (up to 20 keys, each key up to 255 characters and each value 1 to 1020, without line breaks, tabs, or invisible characters, and no = in a key; leave it out to keep the current metadata).

Returns

AgentVaultSession
The updated session.