Entity Type - Data Schema
The Data Schema defines what attributes Entities in an Entity Type are expected to have.
Entities may go against the schema and define their own attributes, however this means they won't be managed by the system and therefor lack care for data types, validation, and search optimizations.
An attribute in the schema must have a key, name, and data type defined. Structure attributes will contain an array of child attribute definitions.
We have an experimental API request for analyzing data to generate a schema and mapping you can learn more about here.
Data model
Below is a basic data model for a Data Schema record.
When documentation refers to IDataSchema or just a Data Schema, you can reference this data model.
Alternative schemas
Typically, you manage an Entity Type's Data Schema directly through the Entity Type record.
However, if you want manage an alternative Data Schema to transform the response data with then you can use the below endpoints.
If you include the query param schema={schema_id} then the result Entities in an Entity or DataLab request will be mapped to your alternative schema. Note that the mapping is performed after record retrieval, so you can't use this to filter records.