Skip to content
Start here

Updates a raw event

client.cloudforceOne.threatEvents.raw.edit(stringeventId, stringrawId, RawEditParams { account_id, data, source, tlp } params, RequestOptionsoptions?): RawEditResponse { id, data }
PATCH/accounts/{account_id}/cloudforce-one/events/{event_id}/raw/{raw_id}

Updates a raw event

Security

API Token

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

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Accepted Permissions (at least one required)
Cloudforce One Write
ParametersExpand Collapse
eventId: string

Event UUID.

rawId: string

Raw Event UUID.

params: RawEditParams { account_id, data, source, tlp }
account_id: string

Path param: Account ID.

data?: unknown

Body param

source?: string

Body param

tlp?: string

Body param

ReturnsExpand Collapse
RawEditResponse { id, data }
id: string
data: unknown

Updates a raw event

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.raw.edit('event_id', 'raw_id', {
  account_id: 'account_id',
});

console.log(response.id);
{
  "id": "1234",
  "data": {}
}
Returns Examples
{
  "id": "1234",
  "data": {}
}