OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Update an existing feature flag.
Goal
Modify flag configuration.
Context
Called when adjusting flag settings.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const UpdateFlagContract = defineCommand({
meta: {
key: 'flag.update',
version: '1.0.0',
stability: 'stable',
owners: ['platform.feature-flags'],
tags: ['feature-flags', 'update'],
description: 'Update an existing feature flag.',
goal: 'Modify flag configuration.',
context: 'Called when adjusting flag settings.',
},
io: {
input: UpdateFlagInput,
output: FeatureFlagModel,
errors: {
FLAG_NOT_FOUND: {
description: 'Flag does not exist',
http: 404,
gqlCode: 'FLAG_NOT_FOUND',
when: 'Flag ID is invalid',
},
},
},
policy: {
auth: 'admin',
},
});