Groups
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
List all groups types
Path Parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
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
Status 200
RESPONSE
{"group_type": "string","group_type_index": 0,"name_singular": "string","name_plural": "string"}
Update groups types update metadata
Path Parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
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
Status 200
RESPONSE
{"group_type": "string","group_type_index": 0,"name_singular": "string","name_plural": "string"}