Circle V2 API Docs
    Preparing search index...
    update: MutationProcedure<
        {
            input: {
                entityId: number;
                key: | "emrIntegrationEnabled"
                | "sessionNoteGenerationEnabled"
                | "chartReviewEnabled"
                | "formFillingEnabled";
                value: unknown;
            };
            meta: object;
            output: {
                created_at: DbDate;
                entity_id: number & { __brand: "EntityId" };
                id: EntitySettingId;
                setting_key:
                    | "emrIntegrationEnabled"
                    | "sessionNoteGenerationEnabled"
                    | "chartReviewEnabled"
                    | "formFillingEnabled";
                updated_at: DbDate;
                updated_by: string & { __brand: "UserId" }
                | null;
                value: boolean;
            };
        },
    > = ...

    Upserts a single setting for an entity. Restricted to superadmins. The repo validates the value at runtime against the registered zod schema, so passing unknown through is safe.