Skip to main content

Variable: DataProfilePatchRequestSchema

const DataProfilePatchRequestSchema: ZodObject<{
name: ZodString;
profile_type: ZodEnum<["basic", "advanced"]>;
description: ZodOptional<ZodNullable<ZodString>>;
detection_rules: ZodOptional<ZodNullable<ZodArray<ZodDiscriminatedUnion<"rule_type", [ZodObject<{
rule_type: ZodLiteral<"expression_tree">;
expression_tree: ZodOptional<ZodNullable<...>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
rule_type: ZodLiteral<...>;
expression_tree: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
rule_type: ZodLiteral<...>;
expression_tree: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>, ZodObject<{
rule_type: ZodLiteral<"multi_profile">;
multi_profile: ZodOptional<ZodNullable<...>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
rule_type: ZodLiteral<...>;
multi_profile: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
rule_type: ZodLiteral<...>;
multi_profile: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>]>, "many">>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
name: ZodString;
profile_type: ZodEnum<["basic", "advanced"]>;
description: ZodOptional<ZodNullable<ZodString>>;
detection_rules: ZodOptional<ZodNullable<ZodArray<ZodDiscriminatedUnion<"rule_type", [ZodObject<{
rule_type: ZodLiteral<...>;
expression_tree: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
rule_type: ...;
expression_tree: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
rule_type: ...;
expression_tree: ...;
}, ZodTypeAny, "passthrough">>, ZodObject<{
rule_type: ZodLiteral<...>;
multi_profile: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
rule_type: ...;
multi_profile: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
rule_type: ...;
multi_profile: ...;
}, ZodTypeAny, "passthrough">>]>, "many">>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
name: ZodString;
profile_type: ZodEnum<["basic", "advanced"]>;
description: ZodOptional<ZodNullable<ZodString>>;
detection_rules: ZodOptional<ZodNullable<ZodArray<ZodDiscriminatedUnion<"rule_type", [ZodObject<{
rule_type: ZodLiteral<...>;
expression_tree: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
rule_type: ...;
expression_tree: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
rule_type: ...;
expression_tree: ...;
}, ZodTypeAny, "passthrough">>, ZodObject<{
rule_type: ZodLiteral<...>;
multi_profile: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
rule_type: ...;
multi_profile: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
rule_type: ...;
multi_profile: ...;
}, ZodTypeAny, "passthrough">>]>, "many">>>;
}, ZodTypeAny, "passthrough">>;

Defined in: src/models/dlp-data-profile.ts:187

Request payload for PATCH (JSON Merge Patch, RFC 7396).

Spec marks name and profile_type as required. All other fields use jsonNullable — omit to leave unchanged, send null to clear.