---
schema_version: "1"
id: 04299ce7eefa3e92e07394eb71cfeae12e4a2a2cdbe5e0944bcf0ba8ddac4b3c
title: CanHaveLabels
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/canhavelabels.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/canhavelabels.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 859a968f0c9dd8fdcfbb3505746454fc8475efb0491d29275c5a0d0eaa9141fa
---
_menu_ Types

INTERFACE

# CanHaveLabels

A content item that can have labels.  
_Available in Tableau Cloud March 2023 / Server 2023.1 and later._

## [_link_](#graphql-schema-definition) GraphQL Schema definition

`   - interface CanHaveLabels {  - # Unique identifier used by the metadata API. Not the same as the numeric ID used - # on server - id: [ID](https://help.tableau.com/current/api/metadata_api/en-us/reference/id.doc.html)!  - # The name of the asset - name: [String](https://help.tableau.com/current/api/metadata_api/en-us/reference/string.doc.html)  - # Locally unique identifier used for the REST API on the Tableau Server - luid: [String](https://help.tableau.com/current/api/metadata_api/en-us/reference/string.doc.html)!  - # The labels on a content item. Available in Tableau Cloud March 2023 / Server - # 2023.1 and later. - # - # Arguments - # **filter**: Filter by GraphQL field and given value - # **orderBy**: Sort by given fields. The sort orders defined first in - # the list will take priority. If there are no given sort orders or a tie on the - # final sorted field then the resulting set will be sorted by ID in ascending - # order. - # **permissionMode**: Results filtering mode. - labels( - filter: [Label_Filter](https://help.tableau.com/current/api/metadata_api/en-us/reference/label_filter.doc.html), - orderBy: [LabelSortOrder](https://help.tableau.com/current/api/metadata_api/en-us/reference/labelsortorder.doc.html), - permissionMode: [PermissionMode](https://help.tableau.com/current/api/metadata_api/en-us/reference/permissionmode.doc.html) - ): [[Label](https://help.tableau.com/current/api/metadata_api/en-us/reference/label.doc.html)!]!  - # The labels on a content item. Available in Tableau Cloud March 2023 / Server - # 2023.1 and later. - # - # Arguments - # **after**: The cursor to receive the next page of objects. If no - # cursor is supplied it will start at the beginning of the list. Offset can not be - # set at the same time. This is the preferred API to use if possible as it is - # faster. - # **first**: Maximum number of objects to be returned in a page. The - # default is 100 - # **offset**: The number of entries to offset the start of the page - # by. If no offset is supplied it will start at the beginning of the list. After - # can not be set at the same time. - # **filter**: Filter by GraphQL field and given value - # **orderBy**: Sort by given fields. The sort orders defined first in - # the list will take priority. If there are no given sort orders or a tie on the - # final sorted field then the resulting set will be sorted by ID in ascending - # order. - # **permissionMode**: Results filtering mode. - labelsConnection( - after: [String](https://help.tableau.com/current/api/metadata_api/en-us/reference/string.doc.html), - first: [Int](https://help.tableau.com/current/api/metadata_api/en-us/reference/int.doc.html), - offset: [Int](https://help.tableau.com/current/api/metadata_api/en-us/reference/int.doc.html), - filter: [Label_Filter](https://help.tableau.com/current/api/metadata_api/en-us/reference/label_filter.doc.html), - orderBy: [LabelSortOrder](https://help.tableau.com/current/api/metadata_api/en-us/reference/labelsortorder.doc.html), - permissionMode: [PermissionMode](https://help.tableau.com/current/api/metadata_api/en-us/reference/permissionmode.doc.html) - ): [LabelsConnection](https://help.tableau.com/current/api/metadata_api/en-us/reference/labelsconnection.doc.html) - }   `

## [_link_](#require-by) Require by

- [CanHaveLabelsesConnection_Connection Type for CanHaveLabels_](https://help.tableau.com/current/api/metadata_api/en-us/reference/canhavelabelsesconnection.doc.html "CanHaveLabelsesConnection - Connection Type for CanHaveLabels")

- [CloudFile_A cloud file connection_](https://help.tableau.com/current/api/metadata_api/en-us/reference/cloudfile.doc.html "CloudFile - A cloud file connection")

- [Column_GraphQL type for a table column_](https://help.tableau.com/current/api/metadata_api/en-us/reference/column.doc.html "Column - GraphQL type for a table column")

- [DatabaseServer_A database server connection_](https://help.tableau.com/current/api/metadata_api/en-us/reference/databaseserver.doc.html "DatabaseServer - A database server connection")

- [DatabaseTable_A table that is contained in a database_](https://help.tableau.com/current/api/metadata_api/en-us/reference/databasetable.doc.html "DatabaseTable - A table that is contained in a database")

- [DataCloud_A Data Cloud connection \*Available in Tableau Cloud February 2024 / Server 2024.2 and later.\*_](datacloud.doc.html "DataCloud - A Data Cloud connection  
    *Available in Tableau Cloud February 2024 / Server 2024.2 and later.*")

- [DataQualityCertification_A data quality certification associated with a content item_](https://help.tableau.com/current/api/metadata_api/en-us/reference/dataqualitycertification.doc.html "DataQualityCertification - A data quality certification associated with a content item")

- [DataQualityWarning_A data quality warning associated with a content item_](https://help.tableau.com/current/api/metadata_api/en-us/reference/dataqualitywarning.doc.html "DataQualityWarning - A data quality warning associated with a content item")

- [File_A file connection_](https://help.tableau.com/current/api/metadata_api/en-us/reference/file.doc.html "File - A file connection")

- [Flow_Flows are used to prepare data, which can include aggregation, cleaning, preprocessing, etc._](https://help.tableau.com/current/api/metadata_api/en-us/reference/flow.doc.html "Flow - Flows are used to prepare data, which can include aggregation, cleaning, preprocessing, etc.")

- [GenericLabel_A label that can be attached to assets. \*Available in Tableau Cloud March 2023 / Server 2023.1 and later.\*_](genericlabel.doc.html "GenericLabel - A label that can be attached to assets.  
    *Available in Tableau Cloud March 2023 / Server 2023.1 and later.*")

- [Label_A label that can be attached to assets. \*Available in Tableau Cloud March 2023 / Server 2023.1 and later.\*_](label.doc.html "Label - A label that can be attached to assets.  
    *Available in Tableau Cloud March 2023 / Server 2023.1 and later.*")

- [PublishedDatasource_A Tableau data source that has been published separately to Tableau Server. It can be used by multiple workbooks._](https://help.tableau.com/current/api/metadata_api/en-us/reference/publisheddatasource.doc.html "PublishedDatasource - A Tableau data source that has been published separately to Tableau Server. It can be used by multiple workbooks.")

- [VirtualConnection_A virtual connection. \*Available in Tableau Cloud March 2022 / Server 2022.1 and later.\*_](virtualconnection.doc.html "VirtualConnection - A virtual connection.  
    *Available in Tableau Cloud March 2022 / Server 2022.1 and later.*")

- [VirtualConnectionTable_A table in a virtual connection. \*Available in Tableau Cloud March 2022 / Server 2022.1 and later.\*_](virtualconnectiontable.doc.html "VirtualConnectionTable - A table in a virtual connection.  
    *Available in Tableau Cloud March 2022 / Server 2022.1 and later.*")

- [WebDataConnector_A web data connector_](https://help.tableau.com/current/api/metadata_api/en-us/reference/webdataconnector.doc.html "WebDataConnector - A web data connector")