PostHog
Create PostHog Cohort
Create PostHog Cohort.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| identifieraccount · required | account | required | — |
| project_idstring · required | string | required | Project ID returned by List PostHog Projects. Uses only the selected connected account. |
| namestring · required | string | required | PostHog name. |
| descriptionstring · optional | string | optional | PostHog description. |
| filtersstring · optional | string | optional | PostHog filters as structured JSON or JSON text. Supports Workflow variables. |
| is_staticboolean · optional | boolean | optional | PostHog is static. |
| cohort_typestring · optional | string | optional | PostHog cohort type. |
| querystring · optional | string | optional | PostHog query JSON, such as an InsightVizNode containing a TrendsQuery. Use the shape required by this resource. |
| _create_in_folderstring · optional | string | optional | PostHog create in folder. |
| _create_static_person_idsstring · optional | string | optional | PostHog create static person ids as structured JSON or JSON text. Supports Workflow variables. |
Response schema
{
"type": "object",
"required": [
"id",
"is_static",
"is_calculating",
"deleted"
],
"properties": {
"id": {
"type": "number"
},
"name": {
"type": "string"
},
"count": {
"type": "number"
},
"deleted": {
"type": "boolean"
},
"filters": {},
"is_static": {
"type": "boolean"
},
"created_at": {
"type": "string"
},
"cohort_type": {
"type": "string"
},
"description": {
"type": "string"
},
"is_calculating": {
"type": "boolean"
}
},
"additionalProperties": false
}