provider persons PUT /api/environments/{environment_id}/persons/{id}/
@utdk/posthog /api/environments/{environment_id}/persons/{id}/
environments_persons_update
Only for setting properties on the person. "properties" from the request data will be updated via a "$set" event. This means that only the properties listed will be updated, but other properties won't be removed nor updated. If you would like to remove a property use the `delete_property` endpoint.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
format query
enum: csv, json
id path required
A unique value identifying this person. Accepts both numeric ID and UUID.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsPersonsUpdate
PUT/api/environments/{environment_id}/persons/{id}/
Only for setting properties on the person. "properties" from the request data will be updated via a "$set" event. This means that only the properties listed will be updated, but other properties won't be removed nor updated. If you would like to remove a property use the `delete_property` endpoint.

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

required

A unique value identifying this person. Accepts both numeric ID and UUID.

Input

required

Numeric person ID.

required

Display name derived from person properties (email, name, or username).

required

Key-value map of person properties set via $set and $set_once operations.

required

When this person was first seen (ISO 8601).

required

Unique identifier (UUID) for this person.

required

Timestamp of the last event from this person, or null.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsPersonsUpdate()