Menu
Schema Apply
Apply Schema Difference
POST
/schema/applyUse it in a workflow
- Add a step and choose the Directus connector.
- Pick the Schema Apply action (under Schema).
- Fill in the fields below, then reference the result from later steps as
{{schemaApply.response.data}}.
Request
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"hash": "string",
"diff": {
"collections": [
{
"collection": "string",
"diff": [
{}
]
}
],
"fields": [
{
"collection": "string",
"field": "string",
"diff": [
{}
]
}
],
"systemFields": [
{
"collection": "string",
"field": "string",
"diff": [
{}
]
}
],
"relations": [
{
"collection": "string",
"field": "string",
"related_collection": "string",
"diff": [
{}
]
}
]
}
}
Response
Returns 204 with a any. Read it in later steps with {{schemaApply.response.data.<field>}}.
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?