curl --request GET \
--url https://api-dev.narrative.io/schema-presets \
--header 'Authorization: Bearer <token>'{
"records": [
{
"id": 19,
"company_id": 1,
"created_at": "2021-09-29T15:20:56.44361",
"archived_at": null,
"name": "Age",
"description": "A person's age gathered from registrations and surveys.",
"scope": "public",
"based_on_preset_id": null,
"status": "active",
"icon": "http://icon.com/age.png",
"display_color": "#FFFFFF",
"banner_image": "http://banner.com/age.png",
"tags": [
"age"
],
"details": {
"attributes": [
{
"attribute_id": 1,
"fields": [
{
"field": "age",
"delivered": true,
"filterable": true,
"required": true,
"forecastable": false
}
]
}
]
}
}
]
}List the schema presets that are publicly available and the ones owned by the authenticated account.
curl --request GET \
--url https://api-dev.narrative.io/schema-presets \
--header 'Authorization: Bearer <token>'{
"records": [
{
"id": 19,
"company_id": 1,
"created_at": "2021-09-29T15:20:56.44361",
"archived_at": null,
"name": "Age",
"description": "A person's age gathered from registrations and surveys.",
"scope": "public",
"based_on_preset_id": null,
"status": "active",
"icon": "http://icon.com/age.png",
"display_color": "#FFFFFF",
"banner_image": "http://banner.com/age.png",
"tags": [
"age"
],
"details": {
"attributes": [
{
"attribute_id": 1,
"fields": [
{
"field": "age",
"delivered": true,
"filterable": true,
"required": true,
"forecastable": false
}
]
}
]
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Returns all the schema presets available to the authenticated account or an empty list if no schema preset is available.
Show child attributes