Retrieve list of groups for the group type

GET /api/v1/group-types/{group_type_code}/groups

Path parameters

Responses

  • List of groups for the group type

    Hide response attributes Show response attributes array[object]
    • id integer

      The group ID

    • code string

      The group code

    • name string

      The group name

    • parent_id integer

      The ID of the group's parent. Only for hierarchical groups.

GET /api/v1/group-types/{group_type_code}/groups
curl \
 -X GET https://app.fridaypulse.com/api/v1/group-types/{group_type_code}/groups \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "id": 101,
    "code": "female",
    "name": "Female"
  },
  {
    "id": 102,
    "code": "male",
    "name": "Male"
  },
  {
    "id": 103,
    "code": "non-binary",
    "name": "Non-binary"
  }
]
Response examples (200)
[
  {
    "id": 42,
    "code": "string",
    "name": "string",
    "parent_id": 42
  }
]