Groups
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
List all groups types
Path Parameters
- project_idstring
Request
GET
/api /projects /:project_id /groups_types
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \https://app.posthog.com/api/projects/:project_id/groups_types/
Response
RESPONSE
{"group_type": "string","group_type_index": 0,"name_singular": "string","name_plural": "string"}
Update groups types update metadata
Path Parameters
- project_idstring
Request Parameters
- name_singularstring
- name_pluralstring
Response
Request
PATCH
/api /projects /:project_id /groups_types /update_metadata
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl -X PATCH \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \https://app.posthog.com/api/projects/:project_id/groups_types/update_metadata/\-d group_type="string"
Response
RESPONSE
{"group_type": "string","group_type_index": 0,"name_singular": "string","name_plural": "string"}