Menu
Schema Snapshot
Retrieve Schema Snapshot
GET
/schema/snapshotUse it in a workflow
- Add a step and choose the Directus connector.
- Pick the Schema Snapshot action (under Schema).
- Fill in the fields below, then reference the result from later steps as
{{schemaSnapshot.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{schemaSnapshot.response.data.<field>}}.
{
"version": 1,
"directus": "string",
"vendor": "string",
"collections": [
{
"collection": "customers",
"icon": "string",
"note": "string",
"display_template": "string",
"hidden": false,
"singleton": false,
"translations": [
null
],
"archive_field": "string",
"archive_app_filter": false,
"archive_value": "string",
"unarchive_value": "string",
"sort_field": "string"
}
],
"fields": [
{
"id": 0,
"collection": "about_us",
"field": "id",
"special": [
"string"
],
"interface": "string",
"options": {},
"display": "string",
"display_options": "string",
"readonly": false,
"hidden": false,
"sort": 0,
"width": "string"
}
],
"systemFields": [
{
"collection": "string",
"field": "string",
"schema": {
"is_indexed": false
}
}
],
"relations": [
{
"id": 1,
"many_collection": "directus_activity",
"many_field": "user",
"one_collection": "directus_users",
"one_field": null,
"one_collection_field": "string",
"one_allowed_collections": [
"string"
],
"junction_field": null,
"sort_field": "string",
"one_deselect_action": "string"
}
]
}
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?