Data model
org-0ujsswThIGTUYm2K8FjOOfXtY1K via the SDK, you get back exactly what acme-corp has been granted — independent of any other record in the group.
Groups
A group defines a category of entity. It has three fields:
Auto-generated record IDs take the form
<prefix>-<ksuid>, for example org-0ujsswThIGTUYm2K8FjOOfXtY1K. This makes IDs self-describing and easy to route to the correct group at a glance. The prefix is derived from the group name automatically when you type it, but you can customize it. Alternatively, you can supply your own ID when creating a record (see below) to align records with your system’s entity IDs.
Creating a group
1
Open the Groups tab
Navigate to Feature Flags in your project, then click the Groups tab.
2
Open the creation dialog
Click New Group.
3
Enter group details
Fill in the Name (e.g.
Organization), Key (e.g. organization), and Prefix (e.g. org). The prefix must be 2–5 lowercase alphanumeric characters and cannot be changed once records exist under the group.4
Create the group
Click Create. The group appears in the Groups table.
Group flags
Group flags are the flags you define within a group. Unlike global flags — which have a single enabled/percentage state — group flags carry default values that apply to any record that does not have an explicit override.
Add flags to a group from the Flags tab inside the group detail page. Use the New Flag button, fill in the name, key, and defaults, then click Create.
Records
A record represents one instance of the group entity — one organization, one user, one tenant. Creating a record registers it in Swisstools and gives it a permanent ID that you use in SDK calls. Records have an optional Name field for display purposes in the dashboard. The ID is set once at creation and cannot be changed afterward: either supply your own stable identifier (e.g. your internal user or customer ID), or leave it blank to let Swisstools generate a<prefix>-<ksuid> value. You can copy it from the Records table using the copy icon next to the ID.
Adding records
From the group detail page, click the Records tab, then New Record. Optionally supply your own ID and a name, then click Create. The new record’s ID appears in the table immediately. Via the API, omit theid field to have one generated for you.
Setting flag values per record
From the Records table, click the sliders icon next to a record to open the flag values panel. You see all flags defined in the group. For each flag you can:- Set a value — choose enabled or disabled and an optional percentage. This overrides the group flag’s default for this record only.
- Clear a value — remove the override so the record falls back to the group flag’s default.
defaultEnabled and defaultPercentage values automatically when resolved via the SDK.