Creates a new category
cloudforce_one.threat_events.categories.create(CategoryCreateParams**kwargs) -> CategoryCreateResponse
POST/accounts/{account_id}/cloudforce-one/events/categories/create
Creates a new category
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Parameters
Creates a new category
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
category = client.cloudforce_one.threat_events.categories.create(
account_id="account_id",
kill_chain=0,
name="name",
)
print(category.uuid){
"killChain": 0,
"name": "name",
"uuid": "12345678-1234-1234-1234-1234567890ab",
"mitreAttack": [
"T1234"
],
"mitreCapec": [
"123"
],
"shortname": "shortname"
}Returns Examples
{
"killChain": 0,
"name": "name",
"uuid": "12345678-1234-1234-1234-1234567890ab",
"mitreAttack": [
"T1234"
],
"mitreCapec": [
"123"
],
"shortname": "shortname"
}