PostHog Groups Types API

The groups_types API from PostHog — 7 operation(s) for groups_types.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/projects/{project_id}/groups_types/ List group types · Groups types list #
Ask an LLM
“Which group types are defined in my project?”
“What singular and plural names are set for each group type?”
Tell an agent
List the group types in project {project_id}.
Show every group type defined for project {project_id}.
DELETE /api/projects/{project_id}/groups_types/{group_type_index}/ Delete a group type · Groups types destroy #
Ask an LLM
“How do I remove a group type from my project?”
“Can I delete a group type by its index?”
Tell an agent destructive · confirm first
Delete group type {group_type_index} from project {project_id}.
Remove the {group_type_index} group type in project {project_id}.
PUT /api/projects/{project_id}/groups_types/create_detail_dashboard/ Create a group type with a detail dashboard · Groups types create detail dashboard update #
Ask an LLM
“How do I create a group type and set its detail dashboard at the same time?”
“Can I give a new group type a singular name and default columns?”
Tell an agent
Create group type {group_type_index} in project {project_id} with singular name {name_singular}.
Create group type {group_type_index} in project {project_id} with detail dashboard {detail_dashboard}.
PUT /api/projects/{project_id}/groups_types/set_default_columns/ Set default columns for a group type · Groups types set default columns update #
Ask an LLM
“How do I change which columns show by default for a group type?”
“Can I set default columns on a group type without touching its name?”
Tell an agent
Set default columns {default_columns} for group type {group_type_index} in project {project_id}.
Update the default columns of group type {group_type_index} in project {project_id} to {default_columns}.
PATCH /api/projects/{project_id}/groups_types/update_metadata/ Update a group type's metadata · Groups types update metadata partial update #
Ask an LLM
“How do I rename a group type's singular or plural name?”
“Can I change a group type's metadata without recreating it?”
Tell an agent
Rename group type {group_type_index} in project {project_id} to singular {name_singular} and plural {name_plural}.
Set the metadata of group type {group_type_index} in project {project_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/posthog:posthog-groups-types-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

posthog-groups-types-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostHog Groups Types API
  version: 1.0.0
  description: ''
tags:
- name: groups_types
paths:
  /api/projects/{project_id}/groups_types/:
    get:
      operationId: groups_types_list
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - groups_types
      security:
      - PersonalAPIKeyAuth:
        - group:read
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GroupType'
          description: ''
      x-explicit-tags: []
      summary: Groups types list
      x-summary-source: derived
  /api/projects/{project_id}/groups_types/{group_type_index}/:
    delete:
      operationId: groups_types_destroy
      parameters:
      - in: path
        name: group_type_index
        schema:
          type: integer
          maximum: 2147483647
          minimum: -2147483648
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - groups_types
      security:
      - PersonalAPIKeyAuth:
        - group:write
      responses:
        '204':
          description: No response body
      x-explicit-tags: []
      summary: Groups types destroy
      x-summary-source: derived
  /api/projects/{project_id}/groups_types/create_detail_dashboard/:
    put:
      operationId: groups_types_create_detail_dashboard_update
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - groups_types
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupType'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/GroupType'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/GroupType'
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
      summary: Groups types create detail dashboard update
      x-summary-source: derived
  /api/projects/{project_id}/groups_types/set_default_columns/:
    put:
      operationId: groups_types_set_default_columns_update
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - groups_types
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupType'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/GroupType'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/GroupType'
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
      summary: Groups types set default columns update
      x-summary-source: derived
  /api/projects/{project_id}/groups_types/update_metadata/:
    patch:
      operationId: groups_types_update_metadata_partial_update
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - groups_types
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedGroupType'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedGroupType'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedGroupType'
      responses:
        '200':
          description: No response body
      x-explicit-tags: []
      summary: Groups types update metadata partial update
      x-summary-source: derived
components:
  parameters:
    ProjectIdPath:
      in: path
      name: project_id
      required: true
      schema:
        type: string
      description: Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
  schemas:
    GroupType:
      type: object
      properties:
        group_type:
          type: string
          readOnly: true
        group_type_index:
          type: integer
          readOnly: true
        name_singular:
          type:
          - string
          - 'null'
          maxLength: 400
        name_plural:
          type:
          - string
          - 'null'
          maxLength: 400
        detail_dashboard:
          type:
          - integer
          - 'null'
        default_columns:
          type:
          - array
          - 'null'
          items:
            type: string
        created_at:
          type:
          - string
          - 'null'
          format: date-time
      required:
      - group_type
      - group_type_index
    PatchedGroupType:
      type: object
      properties:
        group_type:
          type: string
          readOnly: true
        group_type_index:
          type: integer
          readOnly: true
        name_singular:
          type:
          - string
          - 'null'
          maxLength: 400
        name_plural:
          type:
          - string
          - 'null'
          maxLength: 400
        detail_dashboard:
          type:
          - integer
          - 'null'
        default_columns:
          type:
          - array
          - 'null'
          items:
            type: string
        created_at:
          type:
          - string
          - 'null'
          format: date-time
  securitySchemes:
    PersonalAPIKeyAuth:
      type: http
      scheme: bearer
x-tagGroups:
- name: All endpoints
  tags:
  - LLM Analytics
  - actions
  - activity_log
  - activity_logs
  - advanced_activity_logs
  - alerts
  - annotations
  - approval_policies
  - batch_exports
  - cdp
  - change_requests
  - code
  - code-invites
  - cohorts
  - comments
  - conversations
  - core
  - customer_analytics
  - customer_journeys
  - customer_profile_configs
  - dashboard_templates
  - dashboards
  - data_color_themes
  - data_modeling_jobs
  - data_warehouse
  - dataset_items
  - datasets
  - desktop_recordings
  - domains
  - early_access_feature
  - early_access_features
  - elements
  - endpoints
  - environments
  - error_tracking
  - evaluation_runs
  - evaluations
  - event_definitions
  - event_filter
  - event_schemas
  - events
  - experiment_holdouts
  - experiment_saved_metrics
  - experiments
  - exports
  - external_data_schemas
  - external_data_sources
  - feature_flags
  - file_system
  - file_system_shortcut
  - flag_value
  - groups
  - groups_types
  - health_issues
  - heatmap_screenshots
  - heatmaps
  - hog_flows
  - hog_function_templates
  - hog_functions
  - insight_variables
  - insights
  - integrations
  - invites
  - js-snippet
  - legal_documents
  - lineage
  - live_debugger_breakpoints
  - llm_analytics
  - llm_prompts
  - llm_skills
  - logs
  - managed_viewsets
  - max
  - max_tools
  - mcp_server_installations
  - mcp_servers
  - mcp_store
  - mcp_tools
  - members
  - notebooks
  - oauth_applications
  - object_media_previews
  - organizations
  - persisted_folder
  - persons
  - platform_features
  - plugin_configs
  - product_analytics
  - product_tours
  - project_secret_api_keys
  - projects
  - property_definitions
  - proxy_records
  - public_hog_function_templates
  - query
  - replay
  - reverse_proxy
  - role_external_references
  - roles
  - sandbox-environments
  - sandbox_environments
  - saved
  - schema_property_groups
  - sdk_doctor
  - session_group_summaries
  - session_recording_playlists
  - session_recordings
  - session_summaries
  - sessions
  - signals
  - subscriptions
  - surveys
  - taggers
  - task-automations
  - task-runs
  - task_automations
  - tasks
  - uploaded_media
  - user_home_settings
  - user_interviews
  - users
  - visual_review
  - warehouse_dag
  - warehouse_model_paths
  - warehouse_saved_queries
  - warehouse_saved_query_folders
  - warehouse_tables
  - warehouse_view_link
  - warehouse_view_links
  - web_analytics
  - web_experiments
  - web_vitals
  - welcome
  - workflows