Updates a category
client.cloudforceOne.threatEvents.categories.edit(stringcategoryId, CategoryEditParams { account_id, killChain, mitreAttack, 3 more } params, RequestOptionsoptions?): CategoryEditResponse { killChain, name, uuid, 3 more }
PATCH/accounts/{account_id}/cloudforce-one/events/categories/{category_id}
Updates a category
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Updates a category
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const response = await client.cloudforceOne.threatEvents.categories.edit(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
{ account_id: 'account_id' },
);
console.log(response.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"
}