Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt

Use this file to discover all available pages before exploring further.

Syntax

updateProfile(key, value)

Description

Updates a value in the current user’s Contact Profile. Parameters:
  • key: string — the ID of the Contact Profile field to update.
  • value: unknown — a new value for the specified Contact Profile field.
Returns: Promise<void>

Example

// Update the user's first name
await updateProfile("firstName", "Jane");

// Update a numeric field like age
await updateProfile("age", 30);

// Update a boolean preference
await updateProfile("newsletterSubscribed", true);