---
title: Assets
---

[Skip to content](#_top)

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

[Pages](https://developers.cloudflare.com/api/python/resources/pages)

Copy Markdown

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

---

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

# Assets

##### [Upsert asset hashes](https://developers.cloudflare.com/api/python/resources/pages/subresources/assets/methods/upsert_hashes)

pages.assets.upsert\_hashes(AssetUpsertHashesParams\*\*kwargs) -> [AssetUpsertHashesResponse](<https://developers.cloudflare.com/api/python/resources/pages#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)>)

POST/pages/assets/upsert-hashes

##### [Check missing assets](https://developers.cloudflare.com/api/python/resources/pages/subresources/assets/methods/check_missing)

pages.assets.check\_missing(AssetCheckMissingParams\*\*kwargs) -> SyncSinglePage\[[AssetCheckMissingResponse](<https://developers.cloudflare.com/api/python/resources/pages#(resource)%20pages.assets%20%3E%20(model)%20asset_check_missing_response%20%3E%20(schema)>)]

POST/pages/assets/check-missing

##### [Upload asset](https://developers.cloudflare.com/api/python/resources/pages/subresources/assets/methods/upload)

pages.assets.upload(AssetUploadParams\*\*kwargs) -> [AssetUploadResponse](<https://developers.cloudflare.com/api/python/resources/pages#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)>)

POST/pages/assets/upload

##### ModelsExpand Collapse

<details>

<summary>

class AssetUpsertHashesResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20pages.assets%20%3E%20(model)%20asset_upsert_hashes_response%20%3E%20(schema)>)

str

[Link to this property](<#(resource)%20pages.assets%20%3E%20(model)%20asset_check_missing_response%20%3E%20(schema)>)

<details>

<summary>

class AssetUploadResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20pages.assets%20%3E%20(model)%20asset_upload_response%20%3E%20(schema)>)