Skip to content
Start here

Update custom profile

client.ZeroTrust.DLP.Profiles.Custom.Update(ctx, profileID, params) (*Profile, error)
PUT/accounts/{account_id}/dlp/profiles/custom/{profile_id}

Updates a DLP custom profile.

Security
API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
Zero Trust Write
ParametersExpand Collapse
profileID string
formatuuid
params DLPProfileCustomUpdateParams
AccountID param.Field[string]

Path param

Name param.Field[string]

Body param

AIContextEnabled param.Field[bool]Optional

Body param

AllowedMatchCount param.Field[int64]Optional

Body param

formatint32
ConfidenceThreshold param.Field[string]Optional

Body param

DeprecatedContextAwareness param.Field[ContextAwareness]Optional

Body param: Scan the context of predefined entries to only return matches surrounded by keywords.

DataClasses param.Field[[]string]Optional

Body param: Data class IDs to associate with the profile. If omitted, existing associations are unchanged.

DataTags param.Field[[]string]Optional

Body param: Data tag IDs to associate with the profile. If omitted, existing associations are unchanged.

Description param.Field[string]Optional

Body param: The description of the profile.

DeprecatedEntries param.Field[[]DLPProfileCustomUpdateParamsEntry]Optional

Body param: Custom entries from this profile. If this field is omitted, entries owned by this profile will not be changed.

type DLPProfileCustomUpdateParamsEntriesDLPNewCustomEntryWithID struct{…}
Enabled bool
EntryID string
formatuuid
Name string
Pattern Pattern
Regex string
DeprecatedValidation PatternValidationOptional
Description stringOptional
type DLPProfileCustomUpdateParamsEntriesDLPNewCustomEntry struct{…}
Enabled bool
Name string
Pattern Pattern
Regex string
DeprecatedValidation PatternValidationOptional
Description stringOptional
OCREnabled param.Field[bool]Optional

Body param

SensitivityLevels param.Field[[]DLPProfileCustomUpdateParamsSensitivityLevel]Optional

Body param: Sensitivity levels to associate with the profile. If omitted, existing associations are unchanged.

GroupID string
formatuuid
LevelID string
formatuuid
SharedEntries param.Field[[]DLPProfileCustomUpdateParamsSharedEntry]Optional

Body param: Other entries, e.g. predefined or integration.

Enabled bool
EntryID string
formatuuid
ReturnsExpand Collapse
type Profile interface{…}
One of the following:
type ProfileCustomProfile struct{…}
ID string

The id of the profile (uuid).

formatuuid
AllowedMatchCount int64

Related DLP policies will trigger when the match count exceeds the number set.

formatint32
maximum1000
minimum0
CreatedAt Time

When the profile was created.

formatdate-time
Name string

The name of the profile.

OCREnabled bool
Type ProfileCustomProfileType
UpdatedAt Time

When the profile was lasted updated.

formatdate-time
AIContextEnabled boolOptional
ConfidenceThreshold ProfileCustomProfileConfidenceThresholdOptional
One of the following:
const ProfileCustomProfileConfidenceThresholdLow ProfileCustomProfileConfidenceThreshold = "low"
const ProfileCustomProfileConfidenceThresholdMedium ProfileCustomProfileConfidenceThreshold = "medium"
const ProfileCustomProfileConfidenceThresholdHigh ProfileCustomProfileConfidenceThreshold = "high"
const ProfileCustomProfileConfidenceThresholdVeryHigh ProfileCustomProfileConfidenceThreshold = "very_high"
DeprecatedContextAwareness ContextAwarenessOptional

Scan the context of predefined entries to only return matches surrounded by keywords.

Enabled bool

If true, scan the context of predefined entries to only return matches surrounded by keywords.

DataClasses []stringOptional

Data classes associated with this profile.

DataTags []stringOptional

Data tags associated with this profile.

Description stringOptional

The description of the profile.

DeprecatedEntries []ProfileCustomProfileEntryOptional
One of the following:
type ProfileCustomProfileEntriesCustomEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
DeprecatedEnabled bool
Name string
Pattern Pattern
Regex string
DeprecatedValidation PatternValidationOptional
Type ProfileCustomProfileEntriesCustomEntryType
UpdatedAt Time
formatdate-time
Description stringOptional
DeprecatedProfileID stringOptional
formatuuid
type ProfileCustomProfileEntriesCustomPromptTopicEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
DeprecatedEnabled bool
Name string
Type ProfileCustomProfileEntriesCustomPromptTopicEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the custom prompt topic entry.

type ProfileCustomProfileEntriesPredefinedEntry struct{…}
ID string
formatuuid
Confidence ProfileCustomProfileEntriesPredefinedEntryConfidence
AIContextAvailable bool

Indicates whether this entry has AI remote service validation.

Available bool

Indicates whether this entry has any form of validation that is not an AI remote service.

Enabled bool
Name string
Type ProfileCustomProfileEntriesPredefinedEntryType
DeprecatedProfileID stringOptional
formatuuid
Variant ProfileCustomProfileEntriesPredefinedEntryVariantOptional

A Predefined AI prompt classification topic entry.

One of the following:
type ProfileCustomProfileEntriesPredefinedEntryVariantObject struct{…}

A Predefined AI prompt classification topic entry.

TopicType ProfileCustomProfileEntriesPredefinedEntryVariantObjectTopicType
One of the following:
const ProfileCustomProfileEntriesPredefinedEntryVariantObjectTopicTypeIntent ProfileCustomProfileEntriesPredefinedEntryVariantObjectTopicType = "Intent"
const ProfileCustomProfileEntriesPredefinedEntryVariantObjectTopicTypeContent ProfileCustomProfileEntriesPredefinedEntryVariantObjectTopicType = "Content"
Type ProfileCustomProfileEntriesPredefinedEntryVariantObjectType
Description stringOptional

A customer-facing explanation of what this predefined AI prompt topic represents.

type ProfileCustomProfileEntriesPredefinedEntryVariantObject struct{…}

A general predefined entry.

Type ProfileCustomProfileEntriesPredefinedEntryVariantObjectType
Description stringOptional

A customer-facing explanation of what this predefined entry represents.

type ProfileCustomProfileEntriesIntegrationEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfileCustomProfileEntriesIntegrationEntryType
UpdatedAt Time
formatdate-time
ProfileID stringOptional
formatuuid
type ProfileCustomProfileEntriesExactDataEntry struct{…}
ID string
formatuuid
CaseSensitive bool

Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true

CreatedAt Time
formatdate-time
Enabled bool
Name string
Secret bool
Type ProfileCustomProfileEntriesExactDataEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the exact data entry.

type ProfileCustomProfileEntriesDocumentFingerprintEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfileCustomProfileEntriesDocumentFingerprintEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the document fingerprint entry.

type ProfileCustomProfileEntriesWordListEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfileCustomProfileEntriesWordListEntryType
UpdatedAt Time
formatdate-time
WordList unknown
ProfileID stringOptional
formatuuid
SensitivityLevels []ProfileCustomProfileSensitivityLevelOptional

Sensitivity levels associated with this profile.

GroupID string
formatuuid
LevelID string
formatuuid
SharedEntries []ProfileCustomProfileSharedEntryOptional
One of the following:
type ProfileCustomProfileSharedEntriesCustomEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
DeprecatedEnabled bool
Name string
Pattern Pattern
Regex string
DeprecatedValidation PatternValidationOptional
Type ProfileCustomProfileSharedEntriesCustomEntryType
UpdatedAt Time
formatdate-time
Description stringOptional
DeprecatedProfileID stringOptional
formatuuid
type ProfileCustomProfileSharedEntriesCustomPromptTopicEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
DeprecatedEnabled bool
Name string
Type ProfileCustomProfileSharedEntriesCustomPromptTopicEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the custom prompt topic entry.

type ProfileCustomProfileSharedEntriesPredefinedEntry struct{…}
ID string
formatuuid
Confidence ProfileCustomProfileSharedEntriesPredefinedEntryConfidence
AIContextAvailable bool

Indicates whether this entry has AI remote service validation.

Available bool

Indicates whether this entry has any form of validation that is not an AI remote service.

Enabled bool
Name string
Type ProfileCustomProfileSharedEntriesPredefinedEntryType
DeprecatedProfileID stringOptional
formatuuid
Variant ProfileCustomProfileSharedEntriesPredefinedEntryVariantOptional

A Predefined AI prompt classification topic entry.

One of the following:
type ProfileCustomProfileSharedEntriesPredefinedEntryVariantObject struct{…}

A Predefined AI prompt classification topic entry.

TopicType ProfileCustomProfileSharedEntriesPredefinedEntryVariantObjectTopicType
One of the following:
const ProfileCustomProfileSharedEntriesPredefinedEntryVariantObjectTopicTypeIntent ProfileCustomProfileSharedEntriesPredefinedEntryVariantObjectTopicType = "Intent"
const ProfileCustomProfileSharedEntriesPredefinedEntryVariantObjectTopicTypeContent ProfileCustomProfileSharedEntriesPredefinedEntryVariantObjectTopicType = "Content"
Type ProfileCustomProfileSharedEntriesPredefinedEntryVariantObjectType
Description stringOptional

A customer-facing explanation of what this predefined AI prompt topic represents.

type ProfileCustomProfileSharedEntriesPredefinedEntryVariantObject struct{…}

A general predefined entry.

Type ProfileCustomProfileSharedEntriesPredefinedEntryVariantObjectType
Description stringOptional

A customer-facing explanation of what this predefined entry represents.

type ProfileCustomProfileSharedEntriesIntegrationEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfileCustomProfileSharedEntriesIntegrationEntryType
UpdatedAt Time
formatdate-time
ProfileID stringOptional
formatuuid
type ProfileCustomProfileSharedEntriesExactDataEntry struct{…}
ID string
formatuuid
CaseSensitive bool

Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true

CreatedAt Time
formatdate-time
Enabled bool
Name string
Secret bool
Type ProfileCustomProfileSharedEntriesExactDataEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the exact data entry.

type ProfileCustomProfileSharedEntriesDocumentFingerprintEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfileCustomProfileSharedEntriesDocumentFingerprintEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the document fingerprint entry.

type ProfileCustomProfileSharedEntriesWordListEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfileCustomProfileSharedEntriesWordListEntryType
UpdatedAt Time
formatdate-time
WordList unknown
ProfileID stringOptional
formatuuid
type ProfilePredefinedProfile struct{…}
ID string

The id of the predefined profile (uuid).

formatuuid
AllowedMatchCount int64
formatint32
DeprecatedEntries []ProfilePredefinedProfileEntry
One of the following:
type ProfilePredefinedProfileEntriesCustomEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
DeprecatedEnabled bool
Name string
Pattern Pattern
Regex string
DeprecatedValidation PatternValidationOptional
Type ProfilePredefinedProfileEntriesCustomEntryType
UpdatedAt Time
formatdate-time
Description stringOptional
DeprecatedProfileID stringOptional
formatuuid
type ProfilePredefinedProfileEntriesCustomPromptTopicEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
DeprecatedEnabled bool
Name string
Type ProfilePredefinedProfileEntriesCustomPromptTopicEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the custom prompt topic entry.

type ProfilePredefinedProfileEntriesPredefinedEntry struct{…}
ID string
formatuuid
Confidence ProfilePredefinedProfileEntriesPredefinedEntryConfidence
AIContextAvailable bool

Indicates whether this entry has AI remote service validation.

Available bool

Indicates whether this entry has any form of validation that is not an AI remote service.

Enabled bool
Name string
Type ProfilePredefinedProfileEntriesPredefinedEntryType
DeprecatedProfileID stringOptional
formatuuid
Variant ProfilePredefinedProfileEntriesPredefinedEntryVariantOptional

A Predefined AI prompt classification topic entry.

One of the following:
type ProfilePredefinedProfileEntriesPredefinedEntryVariantObject struct{…}

A Predefined AI prompt classification topic entry.

TopicType ProfilePredefinedProfileEntriesPredefinedEntryVariantObjectTopicType
One of the following:
const ProfilePredefinedProfileEntriesPredefinedEntryVariantObjectTopicTypeIntent ProfilePredefinedProfileEntriesPredefinedEntryVariantObjectTopicType = "Intent"
const ProfilePredefinedProfileEntriesPredefinedEntryVariantObjectTopicTypeContent ProfilePredefinedProfileEntriesPredefinedEntryVariantObjectTopicType = "Content"
Type ProfilePredefinedProfileEntriesPredefinedEntryVariantObjectType
Description stringOptional

A customer-facing explanation of what this predefined AI prompt topic represents.

type ProfilePredefinedProfileEntriesPredefinedEntryVariantObject struct{…}

A general predefined entry.

Type ProfilePredefinedProfileEntriesPredefinedEntryVariantObjectType
Description stringOptional

A customer-facing explanation of what this predefined entry represents.

type ProfilePredefinedProfileEntriesIntegrationEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfilePredefinedProfileEntriesIntegrationEntryType
UpdatedAt Time
formatdate-time
ProfileID stringOptional
formatuuid
type ProfilePredefinedProfileEntriesExactDataEntry struct{…}
ID string
formatuuid
CaseSensitive bool

Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true

CreatedAt Time
formatdate-time
Enabled bool
Name string
Secret bool
Type ProfilePredefinedProfileEntriesExactDataEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the exact data entry.

type ProfilePredefinedProfileEntriesDocumentFingerprintEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfilePredefinedProfileEntriesDocumentFingerprintEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the document fingerprint entry.

type ProfilePredefinedProfileEntriesWordListEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfilePredefinedProfileEntriesWordListEntryType
UpdatedAt Time
formatdate-time
WordList unknown
ProfileID stringOptional
formatuuid
Name string

The name of the predefined profile.

Type ProfilePredefinedProfileType
AIContextEnabled boolOptional
ConfidenceThreshold ProfilePredefinedProfileConfidenceThresholdOptional
One of the following:
const ProfilePredefinedProfileConfidenceThresholdLow ProfilePredefinedProfileConfidenceThreshold = "low"
const ProfilePredefinedProfileConfidenceThresholdMedium ProfilePredefinedProfileConfidenceThreshold = "medium"
const ProfilePredefinedProfileConfidenceThresholdHigh ProfilePredefinedProfileConfidenceThreshold = "high"
const ProfilePredefinedProfileConfidenceThresholdVeryHigh ProfilePredefinedProfileConfidenceThreshold = "very_high"
DeprecatedContextAwareness ContextAwarenessOptional

Scan the context of predefined entries to only return matches surrounded by keywords.

Enabled bool

If true, scan the context of predefined entries to only return matches surrounded by keywords.

OCREnabled boolOptional
OpenAccess boolOptional

Whether this profile can be accessed by anyone.

type ProfileIntegrationProfile struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
DeprecatedEntries []ProfileIntegrationProfileEntry
One of the following:
type ProfileIntegrationProfileEntriesCustomEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
DeprecatedEnabled bool
Name string
Pattern Pattern
Regex string
DeprecatedValidation PatternValidationOptional
Type ProfileIntegrationProfileEntriesCustomEntryType
UpdatedAt Time
formatdate-time
Description stringOptional
DeprecatedProfileID stringOptional
formatuuid
type ProfileIntegrationProfileEntriesCustomPromptTopicEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
DeprecatedEnabled bool
Name string
Type ProfileIntegrationProfileEntriesCustomPromptTopicEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the custom prompt topic entry.

type ProfileIntegrationProfileEntriesPredefinedEntry struct{…}
ID string
formatuuid
Confidence ProfileIntegrationProfileEntriesPredefinedEntryConfidence
AIContextAvailable bool

Indicates whether this entry has AI remote service validation.

Available bool

Indicates whether this entry has any form of validation that is not an AI remote service.

Enabled bool
Name string
Type ProfileIntegrationProfileEntriesPredefinedEntryType
DeprecatedProfileID stringOptional
formatuuid
Variant ProfileIntegrationProfileEntriesPredefinedEntryVariantOptional

A Predefined AI prompt classification topic entry.

One of the following:
type ProfileIntegrationProfileEntriesPredefinedEntryVariantObject struct{…}

A Predefined AI prompt classification topic entry.

TopicType ProfileIntegrationProfileEntriesPredefinedEntryVariantObjectTopicType
One of the following:
const ProfileIntegrationProfileEntriesPredefinedEntryVariantObjectTopicTypeIntent ProfileIntegrationProfileEntriesPredefinedEntryVariantObjectTopicType = "Intent"
const ProfileIntegrationProfileEntriesPredefinedEntryVariantObjectTopicTypeContent ProfileIntegrationProfileEntriesPredefinedEntryVariantObjectTopicType = "Content"
Type ProfileIntegrationProfileEntriesPredefinedEntryVariantObjectType
Description stringOptional

A customer-facing explanation of what this predefined AI prompt topic represents.

type ProfileIntegrationProfileEntriesPredefinedEntryVariantObject struct{…}

A general predefined entry.

Type ProfileIntegrationProfileEntriesPredefinedEntryVariantObjectType
Description stringOptional

A customer-facing explanation of what this predefined entry represents.

type ProfileIntegrationProfileEntriesIntegrationEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfileIntegrationProfileEntriesIntegrationEntryType
UpdatedAt Time
formatdate-time
ProfileID stringOptional
formatuuid
type ProfileIntegrationProfileEntriesExactDataEntry struct{…}
ID string
formatuuid
CaseSensitive bool

Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true

CreatedAt Time
formatdate-time
Enabled bool
Name string
Secret bool
Type ProfileIntegrationProfileEntriesExactDataEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the exact data entry.

type ProfileIntegrationProfileEntriesDocumentFingerprintEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfileIntegrationProfileEntriesDocumentFingerprintEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the document fingerprint entry.

type ProfileIntegrationProfileEntriesWordListEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfileIntegrationProfileEntriesWordListEntryType
UpdatedAt Time
formatdate-time
WordList unknown
ProfileID stringOptional
formatuuid
Name string
SharedEntries []ProfileIntegrationProfileSharedEntry
One of the following:
type ProfileIntegrationProfileSharedEntriesCustomEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
DeprecatedEnabled bool
Name string
Pattern Pattern
Regex string
DeprecatedValidation PatternValidationOptional
Type ProfileIntegrationProfileSharedEntriesCustomEntryType
UpdatedAt Time
formatdate-time
Description stringOptional
DeprecatedProfileID stringOptional
formatuuid
type ProfileIntegrationProfileSharedEntriesCustomPromptTopicEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
DeprecatedEnabled bool
Name string
Type ProfileIntegrationProfileSharedEntriesCustomPromptTopicEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the custom prompt topic entry.

type ProfileIntegrationProfileSharedEntriesPredefinedEntry struct{…}
ID string
formatuuid
Confidence ProfileIntegrationProfileSharedEntriesPredefinedEntryConfidence
AIContextAvailable bool

Indicates whether this entry has AI remote service validation.

Available bool

Indicates whether this entry has any form of validation that is not an AI remote service.

Enabled bool
Name string
Type ProfileIntegrationProfileSharedEntriesPredefinedEntryType
DeprecatedProfileID stringOptional
formatuuid
Variant ProfileIntegrationProfileSharedEntriesPredefinedEntryVariantOptional

A Predefined AI prompt classification topic entry.

One of the following:
type ProfileIntegrationProfileSharedEntriesPredefinedEntryVariantObject struct{…}

A Predefined AI prompt classification topic entry.

TopicType ProfileIntegrationProfileSharedEntriesPredefinedEntryVariantObjectTopicType
One of the following:
const ProfileIntegrationProfileSharedEntriesPredefinedEntryVariantObjectTopicTypeIntent ProfileIntegrationProfileSharedEntriesPredefinedEntryVariantObjectTopicType = "Intent"
const ProfileIntegrationProfileSharedEntriesPredefinedEntryVariantObjectTopicTypeContent ProfileIntegrationProfileSharedEntriesPredefinedEntryVariantObjectTopicType = "Content"
Type ProfileIntegrationProfileSharedEntriesPredefinedEntryVariantObjectType
Description stringOptional

A customer-facing explanation of what this predefined AI prompt topic represents.

type ProfileIntegrationProfileSharedEntriesPredefinedEntryVariantObject struct{…}

A general predefined entry.

Type ProfileIntegrationProfileSharedEntriesPredefinedEntryVariantObjectType
Description stringOptional

A customer-facing explanation of what this predefined entry represents.

type ProfileIntegrationProfileSharedEntriesIntegrationEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfileIntegrationProfileSharedEntriesIntegrationEntryType
UpdatedAt Time
formatdate-time
ProfileID stringOptional
formatuuid
type ProfileIntegrationProfileSharedEntriesExactDataEntry struct{…}
ID string
formatuuid
CaseSensitive bool

Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true

CreatedAt Time
formatdate-time
Enabled bool
Name string
Secret bool
Type ProfileIntegrationProfileSharedEntriesExactDataEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the exact data entry.

type ProfileIntegrationProfileSharedEntriesDocumentFingerprintEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfileIntegrationProfileSharedEntriesDocumentFingerprintEntryType
UpdatedAt Time
formatdate-time
Description stringOptional

The optional description of the document fingerprint entry.

type ProfileIntegrationProfileSharedEntriesWordListEntry struct{…}
ID string
formatuuid
CreatedAt Time
formatdate-time
Enabled bool
Name string
Type ProfileIntegrationProfileSharedEntriesWordListEntryType
UpdatedAt Time
formatdate-time
WordList unknown
ProfileID stringOptional
formatuuid
Type ProfileIntegrationProfileType
UpdatedAt Time
formatdate-time
Description stringOptional

The description of the profile.

Update custom profile

package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/cloudflare-go"
  "github.com/stainless-sdks/cloudflare-go/option"
  "github.com/stainless-sdks/cloudflare-go/zero_trust"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  profile, err := client.ZeroTrust.DLP.Profiles.Custom.Update(
    context.TODO(),
    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    zero_trust.DLPProfileCustomUpdateParams{
      AccountID: cloudflare.F("account_id"),
      Name: cloudflare.F("name"),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", profile)
}
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "allowed_match_count": 5,
    "created_at": "2019-12-27T18:11:19.117Z",
    "name": "name",
    "ocr_enabled": true,
    "type": "custom",
    "updated_at": "2019-12-27T18:11:19.117Z",
    "ai_context_enabled": true,
    "confidence_threshold": "low",
    "context_awareness": {
      "enabled": true,
      "skip": {
        "files": true
      }
    },
    "data_classes": [
      "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
    ],
    "data_tags": [
      "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
    ],
    "description": "description",
    "entries": [
      {
        "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        "created_at": "2019-12-27T18:11:19.117Z",
        "enabled": true,
        "name": "name",
        "pattern": {
          "regex": "regex",
          "validation": "luhn"
        },
        "type": "custom",
        "updated_at": "2019-12-27T18:11:19.117Z",
        "description": "description",
        "profile_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
      }
    ],
    "sensitivity_levels": [
      {
        "group_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        "level_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
      }
    ],
    "shared_entries": [
      {
        "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        "created_at": "2019-12-27T18:11:19.117Z",
        "enabled": true,
        "name": "name",
        "pattern": {
          "regex": "regex",
          "validation": "luhn"
        },
        "type": "custom",
        "updated_at": "2019-12-27T18:11:19.117Z",
        "description": "description",
        "profile_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
      }
    ]
  }
}
Returns Examples
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "allowed_match_count": 5,
    "created_at": "2019-12-27T18:11:19.117Z",
    "name": "name",
    "ocr_enabled": true,
    "type": "custom",
    "updated_at": "2019-12-27T18:11:19.117Z",
    "ai_context_enabled": true,
    "confidence_threshold": "low",
    "context_awareness": {
      "enabled": true,
      "skip": {
        "files": true
      }
    },
    "data_classes": [
      "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
    ],
    "data_tags": [
      "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
    ],
    "description": "description",
    "entries": [
      {
        "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        "created_at": "2019-12-27T18:11:19.117Z",
        "enabled": true,
        "name": "name",
        "pattern": {
          "regex": "regex",
          "validation": "luhn"
        },
        "type": "custom",
        "updated_at": "2019-12-27T18:11:19.117Z",
        "description": "description",
        "profile_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
      }
    ],
    "sensitivity_levels": [
      {
        "group_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        "level_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
      }
    ],
    "shared_entries": [
      {
        "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        "created_at": "2019-12-27T18:11:19.117Z",
        "enabled": true,
        "name": "name",
        "pattern": {
          "regex": "regex",
          "validation": "luhn"
        },
        "type": "custom",
        "updated_at": "2019-12-27T18:11:19.117Z",
        "description": "description",
        "profile_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
      }
    ]
  }
}