TraitGroup

List Trait Groups

Changed on

Returns a list of Trait Groups for this Memory Store, with optional traits information.

get/v1/ControlPlane/Stores/{storeId}/TraitGroups

Request

  • Base URL
    https://memory.twilio.com
  • URL
    https://memory.twilio.com/v1/ControlPlane/Stores/{storeId}/TraitGroups
  • Auth
    HTTP basic

Query parameters

includeTraitsboolean

Whether to include trait definitions in the response

pageSizeinteger

The maximum number of items to return per page, maximum of 100.

pageTokenstring

The token for the page of results to retrieve.

orderBy'ASC' | 'DESC'

Either 'ASC' or 'DESC' to sort results ascending or descending respectively.

Response

List of TraitGroups retrieved successfully

Example response

{
  "traitGroups": [
    {
      "displayName": "Contact",
      "description": "This Trait Group contains traits related to contact information.",
      "traits": {
        "email": {
          "dataType": "STRING",
          "description": "User's email address"
        },
        "dob": {
          "dataType": "STRING",
          "description": "User's date of birth"
        }
      },
      "version": 3
    }
  ],
  "meta": {
    "nextToken": "eyJlYXN0ZXIiOiJlZ2cifQ",
    "previousToken": "eyJlYXN0ZXIiOiJlZ2cifQ"
  }
}

Changes

    • breaking

      the response property's max was increased from 99999.00 to 999999.00 for the response status

    • breaking

      the response property's max was increased from 99999.00 to 999999.00 for the response status

    • breaking

      the response property's max was increased from 99999.00 to 999999.00 for the response status

    • breaking

      the response property's max was increased from 99999.00 to 999999.00 for the response status

    • breaking

      the response property's max was increased from 99999.00 to 999999.00 for the response status

    • info

      for the query request parameter pageToken, the maxLength was increased from 500 to 4096

    • info

      the response's property default value 50 was removed for the status