> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # updateGlobalData > Merge additional entries into the existing global data object. [set-global-data]: /docs/server-sdks/reference/typescript/agents/agent-base/set-global-data [ref-agentbase]: /docs/server-sdks/reference/typescript/agents/agent-base Merge additional entries into the existing `global_data` object. Functionally equivalent to [`setGlobalData()`][set-global-data] — both methods call `.update()` on the internal dict so multiple callers (skills, dynamic config callbacks, etc.) can each contribute keys without overwriting each other. `updateGlobalData()` is the idiomatically named variant for call sites that want to make the merge semantics explicit. ## **Parameters** **`data`** `Record` — required Object of key/value pairs to merge into global data. --- ## **Returns** [`AgentBase`][ref-agentbase] -- Returns `this` for method chaining. ## **Example** ```typescript {8} import { AgentBase } from '@signalwire/sdk'; const agent = new AgentBase({ name: 'greenhouse', route: '/greenhouse' }); agent.setPromptText('You are a helpful plant care assistant.'); // Update global data with caller-specific information const user = { name: 'Alice', tier: 'gold' }; agent.updateGlobalData({ authenticated: true, user_name: user.name, user_tier: user.tier, }); await agent.serve(); ``` > Merge additional entries into the existing global data object.