PostHog
Create PostHog Survey
Create PostHog Survey.
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. |
| typestring · required | string | required | PostHog type. |
| descriptionstring · optional | string | optional | PostHog description. |
| questionsstring · optional | string | optional | JSON array of PostHog survey questions, including each question’s type and question text. |
| appearancestring · optional | string | optional | PostHog appearance as structured JSON or JSON text. Supports Workflow variables. |
| conditionsstring · optional | string | optional | PostHog conditions as structured JSON or JSON text. Supports Workflow variables. |
| start_datestring · optional | string | optional | PostHog start date; null clears this value. |
| end_datestring · optional | string | optional | PostHog end date; null clears this value. |
| linked_flag_idnumber · optional | number | optional | PostHog linked flag id from the matching lookup in this project. |
| linked_insight_idnumber · optional | number | optional | PostHog linked insight id from the matching lookup in this project. |
| targeting_flag_filtersstring · optional | string | optional | PostHog targeting flag filters as structured JSON or JSON text. Supports Workflow variables. |
| archivedboolean · optional | boolean | optional | PostHog archived. |
| schedulestring · optional | string | optional | PostHog schedule; null clears this value. |
Response schema
{
"type": "object",
"required": [
"id",
"name",
"type",
"created_at"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"archived": {
"type": "boolean"
},
"end_date": {
"type": "string"
},
"schedule": {
"type": "string"
},
"questions": {
"type": "array",
"items": {}
},
"appearance": {
"type": "object",
"additionalProperties": {}
},
"conditions": {
"type": "object",
"additionalProperties": {}
},
"created_at": {
"type": "string"
},
"start_date": {
"type": "string"
},
"description": {
"type": "string"
},
"linked_flag_id": {
"type": "number"
},
"linked_insight_id": {
"type": "number"
},
"targeting_flag_id": {
"type": "number"
}
},
"additionalProperties": false
}