View as Markdown
Lucca icon

Lucca ACTION

Update User Info

Update profile or HR information for an existing user. See the documentation
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Lucca account once, then configure and run Update User Info from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "lucca-update-user-info",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    lucca: { authProvisionId: "apn_xxxxxxx" },
    userId: "User ID",
    firstName: "First Name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Update User Info inputs
Property Type Description
userId User ID string
The ID of the user
Required Dynamic
firstName First Name string
The user's first name
Optional
lastName Last Name string
The user's last name
Optional
mail Email string
The user's email
Optional
login Login string
The user's login
Optional
legalEntityId Legal Entity ID integer
The ID of the legal entity
Optional Dynamic
calendarId Calendar ID integer
The ID of the calendar
Optional
employeeNumber Employee Number string
The employee number
Optional
birthDate Birth Date string
The birth date of the user. Format: 'YYYY-MM-DD'.
Optional
address Address string
The address of the user
Optional
bankName Bank Name string
The name of the bank
Optional
directLine Direct Line string
The direct line of the user
Optional
gender Gender string
The gender of the user
Optional
nationality Nationality string
The nationality of the user
Optional Dynamic
personalEmail Personal Email string
The personal email of the user
Optional
personalMobile Personal Mobile string
The personal mobile of the user
Optional
professionalMobile Professional Mobile string
The professional mobile of the user
Optional
quote Quote string
The quote of the user
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
lucca-update-user-info
Version
0.0.2
App
Lucca
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes