Attribute Schema
The attribute schema defines the valid attribute keys and their types for a memberbase. It acts as a contract — only attributes matching the schema can be set on members.Why Use a Schema
- Validation: Reject invalid attribute keys or mismatched types at write time
- Consistency: Ensure all members use the same attribute vocabulary
- Documentation: Serve as a single source of truth for what attributes exist
Defining a Schema
Use the set endpoint to define or update the schema. Each attribute key has a name and a type:Supported Types
| Type | Description |
|---|---|
string | Text values |
number | Integer or floating-point values |
boolean | True or false |
date | ISO 8601 date-time strings |
array | Lists of strings |