For the complete documentation index, see llms.txt. This page is also available as Markdown.

Enable Schema Trigger

Enable database trigger.

A schema defines a collection's fields, types, and validation. Schemas support drafts, versions, and publishing. This method enables the module for your project.

This method is on the Hub surface (norbix.hub.database) β€” call it from admin tooling or IaC.

schemaId is required here: schema triggers are stored per schema (collection), so the gateway needs to know which schema you mean. The other trigger families (Membership, Payments, Files) do not use schemaId β€” leave it out there.

These examples assume the SDK is installed and your credentials are set as environment variables β€” each client reads them automatically, so the constructors below take no arguments. See Install a Norbix SDK.

import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.database.enableSchemaTrigger({
  triggerId: 'trg_3ebvLfuSO3DFb1wLL0Tzaf',
  schemaId: 'sch_6q37t61LzEQQBWDaRfJ8JS',
});
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Database.EnableSchemaTriggerAsync(new EnableSchemaTrigger
{
    TriggerId = "trg_3ebvLfuSO3DFb1wLL0Tzaf",
    SchemaId = "sch_6q37t61LzEQQBWDaRfJ8JS",
});
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.database.enable_schema_trigger(
    triggerId="trg_3ebvLfuSO3DFb1wLL0Tzaf",
    schemaId="sch_6q37t61LzEQQBWDaRfJ8JS",
)

In the dashboard

Manage this visually in Norbix Cloud β€” see Database β†’ Collections β†’ Triggers.

API reference

Full request and response for this endpoint: Enable Schema Trigger.

Last updated