Updates an existing dataset
cloudforce_one.threat_events.datasets.edit(strdataset_id, DatasetEditParams**kwargs) -> DatasetEditResponse
PATCH/accounts/{account_id}/cloudforce-one/events/dataset/{dataset_id}
Updates an existing dataset
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Updates an existing dataset
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
response = client.cloudforce_one.threat_events.datasets.edit(
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
account_id="account_id",
is_public=True,
name="x",
)
print(response.uuid){
"isPublic": true,
"name": "friendly dataset name",
"uuid": "12345678-1234-1234-1234-1234567890ab"
}Returns Examples
{
"isPublic": true,
"name": "friendly dataset name",
"uuid": "12345678-1234-1234-1234-1234567890ab"
}