provider persons POST /api/projects/{project_id}/persons/reset_person_distinct_id/
@utdk/posthog /api/projects/{project_id}/persons/reset_person_distinct_id/
persons_reset_person_distinct_id_create
Reset a distinct_id for a deleted person. This allows the distinct_id to be used again.
format query
enum: csv, json
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
personsResetPersonDistinctIdCreate
POST/api/projects/{project_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

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

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