PostHog
Update PostHog Survey
Update 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. |
| survey_idstring · required | string | required | PostHog survey id from the matching lookup in this project. |
| namestring · optional | string | optional | PostHog name. |
| descriptionstring · optional | string | optional | PostHog description. |
| typestring · optional | string | optional | PostHog type. |
| schedulestring · optional | string | optional | PostHog schedule. |
| 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_idnumber · optional | number | optional | PostHog targeting flag 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. |
| remove_targeting_flagboolean · optional | boolean | optional | PostHog remove targeting flag; null clears this value. |
| questionsstring · optional | string | optional | JSON array of PostHog survey questions, including each question’s type and question text. |
| conditionsstring · optional | string | optional | PostHog conditions as structured JSON or JSON text. Supports Workflow variables. |
| appearancestring · optional | string | optional | PostHog appearance 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. |
| archivedboolean · optional | boolean | optional | PostHog archived. |
| responses_limitnumber · optional | number | optional | PostHog responses limit; null clears this value. |
| iteration_countnumber · optional | number | optional | PostHog iteration count; null clears this value. |
| iteration_frequency_daysnumber · optional | number | optional | PostHog iteration frequency days; null clears this value. |
| iteration_start_datesstring · optional | string | optional | PostHog iteration start dates as structured JSON or JSON text. Supports Workflow variables. |
| current_iterationnumber · optional | number | optional | PostHog current iteration; null clears this value. |
| current_iteration_start_datestring · optional | string | optional | PostHog current iteration start date; null clears this value. |
| response_sampling_start_datestring · optional | string | optional | PostHog response sampling start date; null clears this value. |
| response_sampling_interval_typestring · optional | string | optional | PostHog response sampling interval type; null clears this value. |
| response_sampling_intervalnumber · optional | number | optional | PostHog response sampling interval; null clears this value. |
| response_sampling_limitnumber · optional | number | optional | PostHog response sampling limit; null clears this value. |
| response_sampling_daily_limitsstring · optional | string | optional | PostHog response sampling daily limits as structured JSON or JSON text. Supports Workflow variables. |
| enable_partial_responsesboolean · optional | boolean | optional | PostHog enable partial responses; null clears this value. |
| enable_iframe_embeddingboolean · optional | boolean | optional | PostHog enable iframe embedding; null clears this value. |
| base_languagestring · optional | string | optional | PostHog base language; null clears this value. |
| translationsstring · optional | string | optional | PostHog translations as structured JSON or JSON text. Supports Workflow variables. |
| form_contentstring · optional | string | optional | PostHog form content as structured JSON or JSON text. Supports Workflow variables. |
Response schema
{
"type": "object",
"required": [
"id",
"name",
"type",
"created_at",
"archived"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"archived": {
"type": "boolean"
},
"end_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"schedule": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"questions": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": {}
}
},
{
"type": "null"
}
]
},
"appearance": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"conditions": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"created_at": {
"type": "string"
},
"created_by": {
"anyOf": [
{
"type": "object",
"required": [
"id",
"uuid",
"distinct_id",
"first_name",
"last_name",
"email",
"is_email_verified",
"role_at_organization"
],
"properties": {
"id": {
"type": "number"
},
"uuid": {
"type": "string"
},
"email": {
"type": "string"
},
"last_name": {
"type": "string"
},
"first_name": {
"type": "string"
},
"distinct_id": {
"type": "string"
},
"hedgehog_config": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"is_email_verified": {
"type": "boolean"
},
"role_at_organization": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "null"
}
]
},
"start_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"linked_flag": {
"anyOf": [
{
"type": "object",
"required": [
"id",
"team_id",
"name",
"key",
"deleted",
"active",
"ensure_experience_continuity",
"version",
"evaluation_runtime",
"bucketing_identifier",
"evaluation_contexts"
],
"properties": {
"id": {
"type": "number"
},
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"active": {
"type": "boolean"
},
"deleted": {
"type": "boolean"
},
"filters": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"team_id": {
"type": "number"
},
"version": {
"type": "number"
},
"evaluation_runtime": {
"type": "string"
},
"evaluation_contexts": {
"type": "array",
"items": {
"type": "string"
}
},
"bucketing_identifier": {
"type": "string"
},
"ensure_experience_continuity": {
"type": "boolean"
}
},
"additionalProperties": true
},
{
"type": "null"
}
]
},
"form_content": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"translations": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"base_language": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"linked_flag_id": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"targeting_flag": {
"anyOf": [
{
"type": "object",
"required": [
"id",
"team_id",
"name",
"key",
"deleted",
"active",
"ensure_experience_continuity",
"version",
"evaluation_runtime",
"bucketing_identifier",
"evaluation_contexts"
],
"properties": {
"id": {
"type": "number"
},
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"active": {
"type": "boolean"
},
"deleted": {
"type": "boolean"
},
"filters": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"team_id": {
"type": "number"
},
"version": {
"type": "number"
},
"evaluation_runtime": {
"type": "string"
},
"evaluation_contexts": {
"type": "array",
"items": {
"type": "string"
}
},
"bucketing_identifier": {
"type": "string"
},
"ensure_experience_continuity": {
"type": "boolean"
}
},
"additionalProperties": true
},
{
"type": "null"
}
]
},
"iteration_count": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"responses_limit": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"current_iteration": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"linked_insight_id": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"targeting_flag_id": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"iteration_start_dates": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"remove_targeting_flag": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"targeting_flag_filters": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"enable_iframe_embedding": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"internal_targeting_flag": {
"anyOf": [
{
"type": "object",
"required": [
"id",
"team_id",
"name",
"key",
"deleted",
"active",
"ensure_experience_continuity",
"version",
"evaluation_runtime",
"bucketing_identifier",
"evaluation_contexts"
],
"properties": {
"id": {
"type": "number"
},
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"active": {
"type": "boolean"
},
"deleted": {
"type": "boolean"
},
"filters": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"team_id": {
"type": "number"
},
"version": {
"type": "number"
},
"evaluation_runtime": {
"type": "string"
},
"evaluation_contexts": {
"type": "array",
"items": {
"type": "string"
}
},
"bucketing_identifier": {
"type": "string"
},
"ensure_experience_continuity": {
"type": "boolean"
}
},
"additionalProperties": true
},
{
"type": "null"
}
]
},
"response_sampling_limit": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"enable_partial_responses": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"iteration_frequency_days": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"response_sampling_interval": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"current_iteration_start_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"response_sampling_start_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"response_sampling_daily_limits": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"response_sampling_interval_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"additionalProperties": true
}