---
title: Labels
---

[Skip to content](#_top)

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

[API Gateway](https://developers.cloudflare.com/api/go/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/go/resources/api_gateway/subresources/labels/methods/list)

client.APIGateway.Labels.List(ctx, params) (\*V4PagePaginationArray\[[LabelListResponse](<https://developers.cloudflare.com/api/go/resources/api_gateway#(resource)%20api_gateway.labels%20%3E%20(model)%20LabelListResponse%20%3E%20(schema)>)], error)

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

#### LabelsUser

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

client.APIGateway.Labels.User.BulkNew(ctx, params) (\*SinglePage\[[LabelUserBulkNewResponse](<https://developers.cloudflare.com/api/go/resources/api_gateway#(resource)%20api_gateway.labels.user%20%3E%20(model)%20LabelUserBulkNewResponse%20%3E%20(schema)>)], error)

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

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

client.APIGateway.Labels.User.BulkDelete(ctx, body) (\*SinglePage\[[LabelUserBulkDeleteResponse](<https://developers.cloudflare.com/api/go/resources/api_gateway#(resource)%20api_gateway.labels.user%20%3E%20(model)%20LabelUserBulkDeleteResponse%20%3E%20(schema)>)], error)

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

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

client.APIGateway.Labels.User.Get(ctx, name, params) (\*[LabelUserGetResponse](<https://developers.cloudflare.com/api/go/resources/api_gateway#(resource)%20api_gateway.labels.user%20%3E%20(model)%20LabelUserGetResponse%20%3E%20(schema)>), error)

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

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

client.APIGateway.Labels.User.Update(ctx, name, params) (\*[LabelUserUpdateResponse](<https://developers.cloudflare.com/api/go/resources/api_gateway#(resource)%20api_gateway.labels.user%20%3E%20(model)%20LabelUserUpdateResponse%20%3E%20(schema)>), error)

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

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

client.APIGateway.Labels.User.Edit(ctx, name, params) (\*[LabelUserEditResponse](<https://developers.cloudflare.com/api/go/resources/api_gateway#(resource)%20api_gateway.labels.user%20%3E%20(model)%20LabelUserEditResponse%20%3E%20(schema)>), error)

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

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

client.APIGateway.Labels.User.Delete(ctx, name, body) (\*[LabelUserDeleteResponse](<https://developers.cloudflare.com/api/go/resources/api_gateway#(resource)%20api_gateway.labels.user%20%3E%20(model)%20LabelUserDeleteResponse%20%3E%20(schema)>), error)

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

#### LabelsUserResources

#### LabelsUserResourcesOperation

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

client.APIGateway.Labels.User.Resources.Operation.Update(ctx, name, params) (\*[LabelUserResourceOperationUpdateResponse](<https://developers.cloudflare.com/api/go/resources/api_gateway#(resource)%20api_gateway.labels.user.resources.operation%20%3E%20(model)%20LabelUserResourceOperationUpdateResponse%20%3E%20(schema)>), error)

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

#### LabelsManaged

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

client.APIGateway.Labels.Managed.Get(ctx, name, params) (\*[LabelManagedGetResponse](<https://developers.cloudflare.com/api/go/resources/api_gateway#(resource)%20api_gateway.labels.managed%20%3E%20(model)%20LabelManagedGetResponse%20%3E%20(schema)>), error)

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

#### LabelsManagedResources

#### LabelsManagedResourcesOperation

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

client.APIGateway.Labels.Managed.Resources.Operation.Update(ctx, name, params) (\*[LabelManagedResourceOperationUpdateResponse](<https://developers.cloudflare.com/api/go/resources/api_gateway#(resource)%20api_gateway.labels.managed.resources.operation%20%3E%20(model)%20LabelManagedResourceOperationUpdateResponse%20%3E%20(schema)>), error)

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