Skip to main content
PATCH
Update a person's profile

Authorizations

Authorization
string
header
required

A project key (Developers → API keys). Keep it on your server, not in an app.

Headers

traceparent
string

W3C Trace Context; joins your trace to ours

Idempotency-Key
string
required

A retry with the same key and body returns the first response

Required string length: 1 - 255

Path Parameters

id
string
required

A usr_… ID, or your own identifier for them. The person must exist already: an event makes them (or send profile with that event)

Body

application/json
profile
object | null
required

What to change in their profile. null erases the whole profile

Example:

Response

Update a person's profile

id
string
required

The usr_… ID

external_id
string
required

The brand's own identifier: an email, a user ID

created_at
string<date-time>
required

When Lurk first heard of them

last_active_at
string<date-time> | null
required

When they last did something, to the hour. Null until an event arrives after Lurk started keeping it

status
enum<string>
required

new: first heard of within the project's new_for_days. lapsing: older than that, and nothing from them for lapsing_after_days. returning: everyone else

Available options:
new,
returning,
lapsing
balances
object[]
required

What they hold now. Units at 0 are left out

profile
object
required

What you told Lurk about them. Kept sealed; nothing in it is verified by Lurk, and rules do not read it. Every field is null (handles empty) until you set it

blocked_at
string<date-time> | null
required

When a member blocked this person; null when not blocked. Blocks apply where device sign-in is switched on.

blocked_by
object | null
required

The member who blocked them; null when not blocked. Blocks apply where device sign-in is switched on.

timezone
string | null
required

Their own time zone, when they have one; else the project's applies

receipts
integer
required

How many receipts they have

Required range: x >= 0
last_receipt_at
string<date-time> | null
required

When their most recent receipt was made. Null when they have none

erased_at
string<date-time> | null

Not available yet. When the person was erased. Null for everyone else. From then on external_id is a random value starting erased:, the brand's old identifier means a new person, and nothing can be added to this one