Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Variable updateNoteFolderSchemaConst

    updateNoteFolderSchema: ZodEffects<
        ZodObject<
            {
                name: ZodOptional<ZodString>;
                parentId: ZodOptional<ZodNullable<ZodString>>;
            },
            "strip",
            ZodTypeAny,
            { name?: string; parentId?: string
            | null },
            { name?: string; parentId?: string | null },
        >,
        { name?: string; parentId?: string | null },
        { name?: string; parentId?: string | null },
    > = ...

    PATCH /note-folders/:id body — rename and/or reparent.

    parentId: null is a MOVE TO ROOT, which is why the refine below tests !== undefined rather than truthiness: null and "absent" are different requests here and collapsing them would make root unreachable.