---
title: Payloads
---

[Skip to content](#_top)

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

[Content Scanning](https://developers.cloudflare.com/api/python/resources/content_scanning)

Copy Markdown

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

---

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

# Payloads

##### [List the Content Scanning custom expressions of a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/subresources/payloads/methods/list)

content\_scanning.payloads.list(PayloadListParams\*\*kwargs) -> SyncSinglePage\[[PayloadListResponse](<https://developers.cloudflare.com/api/python/resources/content_scanning#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_list_response%20%3E%20(schema)>)]

GET/zones/{zone\_id}/content-upload-scan/payloads

##### [Create Content Scanning custom expressions for a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/subresources/payloads/methods/create)

content\_scanning.payloads.create(PayloadCreateParams\*\*kwargs) -> SyncSinglePage\[[PayloadCreateResponse](<https://developers.cloudflare.com/api/python/resources/content_scanning#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_create_response%20%3E%20(schema)>)]

POST/zones/{zone\_id}/content-upload-scan/payloads

##### [Delete a Content Scanning custom expression from a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/subresources/payloads/methods/delete)

content\_scanning.payloads.delete(strexpression\_id, PayloadDeleteParams\*\*kwargs) -> SyncSinglePage\[[PayloadDeleteResponse](<https://developers.cloudflare.com/api/python/resources/content_scanning#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_delete_response%20%3E%20(schema)>)]

DELETE/zones/{zone\_id}/content-upload-scan/payloads/{expression\_id}

##### [Update a Content Scanning custom expression for a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/subresources/payloads/methods/update)

content\_scanning.payloads.update(strexpression\_id, PayloadUpdateParams\*\*kwargs) -> SyncSinglePage\[[PayloadUpdateResponse](<https://developers.cloudflare.com/api/python/resources/content_scanning#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_update_response%20%3E%20(schema)>)]

PATCH/zones/{zone\_id}/content-upload-scan/payloads/{expression\_id}

##### ModelsExpand Collapse

<details>

<summary>

class PayloadListResponse: …

Defines a Content Scanning custom expression.

</summary>

id: Optional\[str]

Defines the unique ID for this Content Scanning custom expression.

maxLength32

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

payload: Optional\[str]

Defines the custom content extraction expression used to reach content objects in the request.

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_list_response%20%3E%20(schema)%20%3E%20(property)%20payload">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_list_response%20%3E%20(schema)>)

<details>

<summary>

class PayloadCreateResponse: …

Defines a Content Scanning custom expression.

</summary>

id: Optional\[str]

Defines the unique ID for this Content Scanning custom expression.

maxLength32

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

payload: Optional\[str]

Defines the custom content extraction expression used to reach content objects in the request.

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_create_response%20%3E%20(schema)%20%3E%20(property)%20payload">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_create_response%20%3E%20(schema)>)

<details>

<summary>

class PayloadDeleteResponse: …

Defines a Content Scanning custom expression.

</summary>

id: Optional\[str]

Defines the unique ID for this Content Scanning custom expression.

maxLength32

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_delete_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

payload: Optional\[str]

Defines the custom content extraction expression used to reach content objects in the request.

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_delete_response%20%3E%20(schema)%20%3E%20(property)%20payload">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_delete_response%20%3E%20(schema)>)

<details>

<summary>

class PayloadUpdateResponse: …

Defines a Content Scanning custom expression.

</summary>

id: Optional\[str]

Defines the unique ID for this Content Scanning custom expression.

maxLength32

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_update_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

payload: Optional\[str]

Defines the custom content extraction expression used to reach content objects in the request.

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_update_response%20%3E%20(schema)%20%3E%20(property)%20payload">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_update_response%20%3E%20(schema)>)