{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates a DLP custom profile.","properties":{"path":{"type":"object","properties":{"account_id":{"type":"string"},"profile_id":{"type":"string","format":"uuid"}},"required":["account_id","profile_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/dlp_CustomProfileUpdate"}},"required":["path","body"],"additionalProperties":false,"definitions":{"dlp_CustomProfileUpdate":{"type":"object","properties":{"ai_context_enabled":{"type":"boolean","default":false},"allowed_match_count":{"type":["integer","null"]},"confidence_threshold":{"type":["string","null"],"default":"low"},"context_awareness":{"allOf":[{"$ref":"#/definitions/dlp_ContextAwareness"}]},"data_classes":{"description":"Data class IDs to associate with the profile. If omitted, existing associations are unchanged.","type":["array","null"],"items":{"format":"uuid","type":"string"}},"data_tags":{"description":"Data tag IDs to associate with the profile. If omitted, existing associations are unchanged.","type":["array","null"],"items":{"format":"uuid","type":"string"}},"description":{"description":"The description of the profile.","type":["string","null"]},"entries":{"description":"Custom entries from this profile.\nIf this field is omitted, entries owned by this profile will not be changed.","type":["array","null"],"items":{"$ref":"#/definitions/dlp_ProfileEntryUpdate"}},"name":{"type":"string"},"ocr_enabled":{"type":"boolean","default":false},"sensitivity_levels":{"description":"Sensitivity levels to associate with the profile. If omitted, existing associations are unchanged.","type":["array","null"],"items":{"$ref":"#/definitions/dlp_SensitivityLevelRef"}},"shared_entries":{"description":"Other entries, e.g. predefined or integration.","type":"array","items":{"$ref":"#/definitions/dlp_SharedEntryUpdate"}}},"required":["name"]},"dlp_ContextAwareness":{"description":"Scan the context of predefined entries to only return matches surrounded by keywords.","type":"object","properties":{"enabled":{"description":"If true, scan the context of predefined entries to only return matches surrounded by keywords.","type":"boolean"},"skip":{"$ref":"#/definitions/dlp_SkipConfig"}},"required":["enabled","skip"]},"dlp_ProfileEntryUpdate":{"oneOf":[{"$ref":"#/definitions/dlp_NewCustomEntryWithId"},{"$ref":"#/definitions/dlp_NewCustomEntry"}]},"dlp_SensitivityLevelRef":{"description":"A reference pairing a sensitivity group with a specific level within that group.","type":"object","properties":{"group_id":{"type":"string","format":"uuid"},"level_id":{"type":"string","format":"uuid"}},"required":["group_id","level_id"]},"dlp_SharedEntryUpdate":{"type":"object","properties":{"enabled":{"type":"boolean"},"entry_id":{"type":"string","format":"uuid"}},"required":["entry_id","enabled"]},"dlp_SkipConfig":{"description":"Content types to exclude from context analysis and return all matches.","type":"object","properties":{"files":{"description":"If the content type is a file, skip context analysis and return all matches.","type":"boolean"}},"required":["files"]},"dlp_NewCustomEntryWithId":{"allOf":[{"$ref":"#/definitions/dlp_NewCustomEntry"},{"properties":{"entry_id":{"type":"string","format":"uuid"}},"required":["entry_id"],"type":"object"}]},"dlp_NewCustomEntry":{"type":"object","properties":{"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"name":{"type":"string"},"pattern":{"$ref":"#/definitions/dlp_Pattern"}},"required":["name","pattern","enabled"]},"dlp_Pattern":{"type":"object","properties":{"regex":{"type":"string"},"validation":{"allOf":[{"$ref":"#/definitions/dlp_Validation"}]}},"required":["regex"]},"dlp_Validation":{"type":"string","enum":["luhn"]}}},"name":"Update custom profile","id":"cloudflare.dlp-profiles-update-custom-profile","example":{"path":{"account_id":"example","profile_id":"00000000-0000-4000-8000-000000000000"},"body":{"name":"example"}},"maxRequests":1,"summary":false}}