---
title: "Create or update people from rows and add them to a new static cohort"
method: POST
path: "/api/projects/{project_id}/workflow_people_imports/"
tags: ["workflow_people_imports"]
---

# Create or update people from rows and add them to a new static cohort

`POST /api/projects/{project_id}/workflow_people_imports/`

## Request

- Base URL: `https://us.posthog.com`
- URL: `https://us.posthog.com/api/projects/{project_id}/workflow_people_imports/`
- Auth: HTTP bearer

## Path parameters

- `project_id` string, required

## Request body

- PeopleImportCreate
  - `name` string, required: Name of the static cohort that holds the imported people.
  - `rows` object[], required: One object per person. Each needs "email". An optional "distinct_id" picks the person to update or create, and an "id" column counts as the distinct_id when there is no "distinct_id" column. Without either, the row updates the person with that email, or creates one keyed by the email. Every other key is set as a person property.

## Response `201`

- PeopleImport
  - `cohort_id` integer, required: The static cohort that fills with the imported people.
  - `row_count` integer, required: People created or updated.
  - `new_people` integer, required: Rows that create a person who isn't in PostHog yet.
  - `columns` string[], required: Person properties the rows set.
  - `dropped_invalid_email` integer, required: Rows dropped for a missing or invalid email.
  - `dropped_duplicate_email` integer, required: Rows dropped because an earlier row had the email or distinct ID.
  - `dropped_too_large` integer, required: Rows dropped for holding more than 4KB of data.

## Changes

> 52 revisions in range; 1 not diffed.

- **2026-10-14** `43c0d2b00ce0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/posthog/apis/posthog-api/changes/api/projects/:project_id/workflow_people_imports/post.md)

---

[API](https://skmtc.dev/posthog/apis/posthog-api.md) · [All operations](https://skmtc.dev/posthog/apis/posthog-api/llms.txt) · [OpenAPI document](https://skmtc.dev/posthog/apis/posthog-api/revisions/71e64193672d?raw)
