TraitGroup

Create a Trait Group

Changed on

Creates a Trait Group with declarative trait schemas for this Memory Store.

post/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

Request body

displayNamestring required

Unique name of the Trait Group

descriptionstring

description of the Trait Group

traitsobject

Map of traits belonging to this Trait Group, keyed by trait name.

Example request

{
  "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"
    }
  }
}

Response

TraitGroup creation request accepted.

messagestring
statusUrlstring

URI to check operation status.

Example response

{
  "message": "TraitGroup creation request accepted."
}

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