---
title: Updates a raw event
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/typescript)

[Cloudforce One](https://developers.cloudflare.com/api/typescript/resources/cloudforce_one)

[Threat Events](https://developers.cloudflare.com/api/typescript/resources/cloudforce_one/subresources/threat_events)

[Raw](https://developers.cloudflare.com/api/typescript/resources/cloudforce_one/subresources/threat_events/subresources/raw)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Updates a raw event

client.cloudforceOne.threatEvents.raw.edit(stringrawID, RawEditParams {account\_id, event\_id, data, 2 more } params, RequestOptionsoptions?): [RawEditResponse](<https://developers.cloudflare.com/api/typescript/resources/cloudforce_one#(resource)%20cloudforce_one.threat_events.raw%20%3E%20(model)%20raw_edit_response%20%3E%20(schema)>) {id, data }

PATCH/accounts/{account\_id}/cloudforce-one/events/{event\_id}/raw/{raw\_id}

Partially updates raw threat event data in Cloudforce One, modifying specific fields of the event.

##### Security

API Token

The preferred authorization scheme for interacting with the Cloudflare API. [Create a token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).

**Example:**`Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY`

##### Accepted Permissions (at least one required)

`Cloudforce One Write`

##### ParametersExpand Collapse

rawID: string

Raw Event UUID.

[Link to this property](<#(resource)%20cloudforce_one.threat_events.raw%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20raw_id%20%3E%20(schema)>)

<details>

<summary>

params: RawEditParams {account\_id, event\_id, data, 2 more }

</summary>

account\_id: string

Path param: Account ID.

<a href="#(resource)%20cloudforce_one.threat_events.raw%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

event\_id: string

Path param: Event UUID.

<a href="#(resource)%20cloudforce_one.threat_events.raw%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20event_id">Link to this property</a>

data?: unknown

Body param

<a href="#(resource)%20cloudforce_one.threat_events.raw%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20data">Link to this property</a>

source?: string

Body param

<a href="#(resource)%20cloudforce_one.threat_events.raw%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20source">Link to this property</a>

tlp?: string

Body param

<a href="#(resource)%20cloudforce_one.threat_events.raw%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20tlp">Link to this property</a>

</details>

[Link to this property](<#(resource)%20cloudforce_one.threat_events.raw%20%3E%20(method)%20edit%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

RawEditResponse {id, data }

</summary>

id: string

<a href="#(resource)%20cloudforce_one.threat_events.raw%20%3E%20(model)%20raw_edit_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

data: unknown

<a href="#(resource)%20cloudforce_one.threat_events.raw%20%3E%20(model)%20raw_edit_response%20%3E%20(schema)%20%3E%20(property)%20data">Link to this property</a>

</details>

[Link to this property](<#(resource)%20cloudforce_one.threat_events.raw%20%3E%20(model)%20raw_edit_response%20%3E%20(schema)>)

### Updates a raw event

TypeScript

HTTPTypeScriptPythonGoTerraform

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

console.log(response.id);
```

200 example

```
{
  "id": "1234",
  "data": {}
}
```

##### Returns Examples

200 example

```
{
  "id": "1234",
  "data": {}
}
```