provider persons POST /api/environments/{environment_id}/persons/reset_person_distinct_id/
@utdk/posthog /api/environments/{environment_id}/persons/reset_person_distinct_id/
environments_persons_reset_person_distinct_id_create
Reset a distinct_id for a deleted person. This allows the distinct_id to be used again.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
format query
enum: csv, json

Try it

Authentication
Configure credentials for PostHog API
environmentsPersonsResetPersonDistinctIdCreate
POST/api/environments/{environment_id}/persons/reset_person_distinct_id/
Reset a distinct_id for a deleted person. This allows the distinct_id to be used again.

Parameters

required

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

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.environmentsPersonsResetPersonDistinctIdCreate()