---
title: Labels
---

[Skip to content](#_top)

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

[API Gateway](https://developers.cloudflare.com/api/python/resources/api_gateway)

Copy Markdown

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

---

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

# Labels

##### [List operation labels](https://developers.cloudflare.com/api/python/resources/api_gateway/subresources/labels/methods/list)

api\_gateway.labels.list(LabelListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[LabelListResponse](<https://developers.cloudflare.com/api/python/resources/api_gateway#(resource)%20api_gateway.labels%20%3E%20(model)%20label_list_response%20%3E%20(schema)>)]

GET/zones/{zone\_id}/api\_gateway/labels

##### ModelsExpand Collapse

<details>

<summary>

class LabelListResponse: …

</summary>

created\_at: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels%20%3E%20(model)%20label_list_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

description: str

The description of the label

<a href="#(resource)%20api_gateway.labels%20%3E%20(model)%20label_list_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

last\_updated: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels%20%3E%20(model)%20label_list_response%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

metadata: object

Metadata for the label

<a href="#(resource)%20api_gateway.labels%20%3E%20(model)%20label_list_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

name: str

The name of the label

<a href="#(resource)%20api_gateway.labels%20%3E%20(model)%20label_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: Literal\["user", "managed"]

- <code>user</code> - label is owned by the user
- <code>managed</code> - label is owned by cloudflare

</summary>

One of the following:

"user"

<a href="#(resource)%20api_gateway.labels%20%3E%20(model)%20label_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"managed"

<a href="#(resource)%20api_gateway.labels%20%3E%20(model)%20label_list_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20api_gateway.labels%20%3E%20(model)%20label_list_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

mapped\_resources: Optional\[object]

Provides counts of what resources are linked to this label

<a href="#(resource)%20api_gateway.labels%20%3E%20(model)%20label_list_response%20%3E%20(schema)%20%3E%20(property)%20mapped_resources">Link to this property</a>

</details>

[Link to this property](<#(resource)%20api_gateway.labels%20%3E%20(model)%20label_list_response%20%3E%20(schema)>)

#### LabelsUser

##### [Create user-defined operation labels](https://developers.cloudflare.com/api/python/resources/api_gateway/subresources/labels/subresources/user/methods/bulk_create)

api\_gateway.labels.user.bulk\_create(UserBulkCreateParams\*\*kwargs) -> SyncSinglePage\[[UserBulkCreateResponse](<https://developers.cloudflare.com/api/python/resources/api_gateway#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_create_response%20%3E%20(schema)>)]

POST/zones/{zone\_id}/api\_gateway/labels/user

##### [Delete user-defined operation labels](https://developers.cloudflare.com/api/python/resources/api_gateway/subresources/labels/subresources/user/methods/bulk_delete)

api\_gateway.labels.user.bulk\_delete(UserBulkDeleteParams\*\*kwargs) -> SyncSinglePage\[[UserBulkDeleteResponse](<https://developers.cloudflare.com/api/python/resources/api_gateway#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_delete_response%20%3E%20(schema)>)]

DELETE/zones/{zone\_id}/api\_gateway/labels/user

##### [Get a user-defined operation label](https://developers.cloudflare.com/api/python/resources/api_gateway/subresources/labels/subresources/user/methods/get)

api\_gateway.labels.user.get(strname, UserGetParams\*\*kwargs) -> [UserGetResponse](<https://developers.cloudflare.com/api/python/resources/api_gateway#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_get_response%20%3E%20(schema)>)

GET/zones/{zone\_id}/api\_gateway/labels/user/{name}

##### [Update a user-defined operation label](https://developers.cloudflare.com/api/python/resources/api_gateway/subresources/labels/subresources/user/methods/update)

api\_gateway.labels.user.update(strname, UserUpdateParams\*\*kwargs) -> [UserUpdateResponse](<https://developers.cloudflare.com/api/python/resources/api_gateway#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_update_response%20%3E%20(schema)>)

PUT/zones/{zone\_id}/api\_gateway/labels/user/{name}

##### [Edit a user-defined operation label](https://developers.cloudflare.com/api/python/resources/api_gateway/subresources/labels/subresources/user/methods/edit)

api\_gateway.labels.user.edit(strname, UserEditParams\*\*kwargs) -> [UserEditResponse](<https://developers.cloudflare.com/api/python/resources/api_gateway#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)>)

PATCH/zones/{zone\_id}/api\_gateway/labels/user/{name}

##### [Delete a user-defined operation label](https://developers.cloudflare.com/api/python/resources/api_gateway/subresources/labels/subresources/user/methods/delete)

api\_gateway.labels.user.delete(strname, UserDeleteParams\*\*kwargs) -> [UserDeleteResponse](<https://developers.cloudflare.com/api/python/resources/api_gateway#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_delete_response%20%3E%20(schema)>)

DELETE/zones/{zone\_id}/api\_gateway/labels/user/{name}

##### ModelsExpand Collapse

<details>

<summary>

class UserBulkCreateResponse: …

</summary>

created\_at: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

description: str

The description of the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

last\_updated: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

metadata: object

Metadata for the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

name: str

The name of the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: Literal\["user", "managed"]

- <code>user</code> - label is owned by the user
- <code>managed</code> - label is owned by cloudflare

</summary>

One of the following:

"user"

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"managed"

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_create_response%20%3E%20(schema)>)

<details>

<summary>

class UserBulkDeleteResponse: …

</summary>

created\_at: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

description: str

The description of the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

last\_updated: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

metadata: object

Metadata for the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

name: str

The name of the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: Literal\["user", "managed"]

- <code>user</code> - label is owned by the user
- <code>managed</code> - label is owned by cloudflare

</summary>

One of the following:

"user"

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"managed"

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_bulk_delete_response%20%3E%20(schema)>)

<details>

<summary>

class UserGetResponse: …

</summary>

created\_at: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

description: str

The description of the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

last\_updated: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

metadata: object

Metadata for the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

name: str

The name of the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: Literal\["user", "managed"]

- <code>user</code> - label is owned by the user
- <code>managed</code> - label is owned by cloudflare

</summary>

One of the following:

"user"

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"managed"

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

mapped\_resources: Optional\[object]

Provides counts of what resources are linked to this label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20mapped_resources">Link to this property</a>

</details>

[Link to this property](<#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_get_response%20%3E%20(schema)>)

<details>

<summary>

class UserUpdateResponse: …

</summary>

created\_at: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_update_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

description: str

The description of the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_update_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

last\_updated: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_update_response%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

metadata: object

Metadata for the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_update_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

name: str

The name of the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_update_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: Literal\["user", "managed"]

- <code>user</code> - label is owned by the user
- <code>managed</code> - label is owned by cloudflare

</summary>

One of the following:

"user"

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"managed"

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_update_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_update_response%20%3E%20(schema)>)

<details>

<summary>

class UserEditResponse: …

</summary>

created\_at: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

description: str

The description of the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

last\_updated: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

metadata: object

Metadata for the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

name: str

The name of the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: Literal\["user", "managed"]

- <code>user</code> - label is owned by the user
- <code>managed</code> - label is owned by cloudflare

</summary>

One of the following:

"user"

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"managed"

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)>)

<details>

<summary>

class UserDeleteResponse: …

</summary>

created\_at: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_delete_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

description: str

The description of the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_delete_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

last\_updated: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_delete_response%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

metadata: object

Metadata for the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_delete_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

name: str

The name of the label

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_delete_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: Literal\["user", "managed"]

- <code>user</code> - label is owned by the user
- <code>managed</code> - label is owned by cloudflare

</summary>

One of the following:

"user"

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"managed"

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_delete_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_delete_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20api_gateway.labels.user%20%3E%20(model)%20user_delete_response%20%3E%20(schema)>)

#### LabelsUserResources

#### LabelsUserResourcesOperation

##### [Replace operations attached to a user-defined label](https://developers.cloudflare.com/api/python/resources/api_gateway/subresources/labels/subresources/user/subresources/resources/subresources/operation/methods/update)

api\_gateway.labels.user.resources.operation.update(strname, OperationUpdateParams\*\*kwargs) -> [OperationUpdateResponse](<https://developers.cloudflare.com/api/python/resources/api_gateway#(resource)%20api_gateway.labels.user.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)>)

PUT/zones/{zone\_id}/api\_gateway/labels/user/{name}/resources/operation

##### ModelsExpand Collapse

<details>

<summary>

class OperationUpdateResponse: …

</summary>

created\_at: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

description: str

The description of the label

<a href="#(resource)%20api_gateway.labels.user.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

last\_updated: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.user.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

metadata: object

Metadata for the label

<a href="#(resource)%20api_gateway.labels.user.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

name: str

The name of the label

<a href="#(resource)%20api_gateway.labels.user.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: Literal\["user", "managed"]

- <code>user</code> - label is owned by the user
- <code>managed</code> - label is owned by cloudflare

</summary>

One of the following:

"user"

<a href="#(resource)%20api_gateway.labels.user.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"managed"

<a href="#(resource)%20api_gateway.labels.user.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20api_gateway.labels.user.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

mapped\_resources: Optional\[object]

Provides counts of what resources are linked to this label

<a href="#(resource)%20api_gateway.labels.user.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20mapped_resources">Link to this property</a>

</details>

[Link to this property](<#(resource)%20api_gateway.labels.user.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)>)

#### LabelsManaged

##### [Get a managed operation label](https://developers.cloudflare.com/api/python/resources/api_gateway/subresources/labels/subresources/managed/methods/get)

api\_gateway.labels.managed.get(strname, ManagedGetParams\*\*kwargs) -> [ManagedGetResponse](<https://developers.cloudflare.com/api/python/resources/api_gateway#(resource)%20api_gateway.labels.managed%20%3E%20(model)%20managed_get_response%20%3E%20(schema)>)

GET/zones/{zone\_id}/api\_gateway/labels/managed/{name}

##### ModelsExpand Collapse

<details>

<summary>

class ManagedGetResponse: …

</summary>

created\_at: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.managed%20%3E%20(model)%20managed_get_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

description: str

The description of the label

<a href="#(resource)%20api_gateway.labels.managed%20%3E%20(model)%20managed_get_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

last\_updated: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.managed%20%3E%20(model)%20managed_get_response%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

metadata: object

Metadata for the label

<a href="#(resource)%20api_gateway.labels.managed%20%3E%20(model)%20managed_get_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

name: str

The name of the label

<a href="#(resource)%20api_gateway.labels.managed%20%3E%20(model)%20managed_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: Literal\["user", "managed"]

- <code>user</code> - label is owned by the user
- <code>managed</code> - label is owned by cloudflare

</summary>

One of the following:

"user"

<a href="#(resource)%20api_gateway.labels.managed%20%3E%20(model)%20managed_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"managed"

<a href="#(resource)%20api_gateway.labels.managed%20%3E%20(model)%20managed_get_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20api_gateway.labels.managed%20%3E%20(model)%20managed_get_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

mapped\_resources: Optional\[object]

Provides counts of what resources are linked to this label

<a href="#(resource)%20api_gateway.labels.managed%20%3E%20(model)%20managed_get_response%20%3E%20(schema)%20%3E%20(property)%20mapped_resources">Link to this property</a>

</details>

[Link to this property](<#(resource)%20api_gateway.labels.managed%20%3E%20(model)%20managed_get_response%20%3E%20(schema)>)

#### LabelsManagedResources

#### LabelsManagedResourcesOperation

##### [Replace operations attached to a managed label](https://developers.cloudflare.com/api/python/resources/api_gateway/subresources/labels/subresources/managed/subresources/resources/subresources/operation/methods/update)

api\_gateway.labels.managed.resources.operation.update(strname, OperationUpdateParams\*\*kwargs) -> [OperationUpdateResponse](<https://developers.cloudflare.com/api/python/resources/api_gateway#(resource)%20api_gateway.labels.managed.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)>)

PUT/zones/{zone\_id}/api\_gateway/labels/managed/{name}/resources/operation

##### ModelsExpand Collapse

<details>

<summary>

class OperationUpdateResponse: …

</summary>

created\_at: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.managed.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

description: str

The description of the label

<a href="#(resource)%20api_gateway.labels.managed.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

last\_updated: datetime

formatdate-time

<a href="#(resource)%20api_gateway.labels.managed.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

metadata: object

Metadata for the label

<a href="#(resource)%20api_gateway.labels.managed.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20metadata">Link to this property</a>

name: str

The name of the label

<a href="#(resource)%20api_gateway.labels.managed.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

source: Literal\["user", "managed"]

- <code>user</code> - label is owned by the user
- <code>managed</code> - label is owned by cloudflare

</summary>

One of the following:

"user"

<a href="#(resource)%20api_gateway.labels.managed.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"managed"

<a href="#(resource)%20api_gateway.labels.managed.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20api_gateway.labels.managed.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

mapped\_resources: Optional\[object]

Provides counts of what resources are linked to this label

<a href="#(resource)%20api_gateway.labels.managed.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)%20%3E%20(property)%20mapped_resources">Link to this property</a>

</details>

[Link to this property](<#(resource)%20api_gateway.labels.managed.resources.operation%20%3E%20(model)%20operation_update_response%20%3E%20(schema)>)