---
schema_version: "1"
id: a31bdcaab19f111e87d8fc48c9ec8ebb41f56e8dd0ff2b247409a81abb69fa31
title: Using Fields in the REST API
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/rest_api/REST/rest_api_concepts_fields.md
canonical_url: https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_concepts_fields.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 6b7258f9854db800225dcf145130deb424f050fa5cb8ea50b54605577d8bc3d3
description: "You can control the type and amount of data that gets returned from requests to the following REST API endpoints:"
---
[Skip to main content](#main-content)

# Using Fields in the REST API

You can control the type and amount of data that gets returned from requests to the following REST API endpoints:

- Get Users on Site
    
    \[[API reference](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#get_users_on_site) | [Field list](#get-users_site)\]
- Query Datasources
    
    \[[API reference](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#query_datasources) | [Field list](#query_datasources)\]
- Query Views for Site
    
    \[[API reference](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#query_views_for_site) | [Field list](#query_views_site)\]
- Query Workbooks for Site
    
    \[[API reference](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#query_workbooks_for_site) | [Field list](#query_workbooks_site)\]
- Query Projects
    
    \[[API reference](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#query_projects) | [Field list](#query_projects)\]
- Query Jobs
    
    \[[API reference](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#query_jobs) | [Field list\]](#query_jobs)
- Query Groups
    
    \[[API reference](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#query_groups) | [Field list](#query_groups)\]
- Get Favorites for user
    
    \[[API reference](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#get_favorites_for_user) | [Field list](#get_favorites_user)\]
- List Custom Views
    
    \[[API reference](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#list_custom_views) | [Field list](#list_custom_views)\]
- List Metrics for Site
    
    \[[API reference](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#list_metrics_for_site) | [Field list](#list_metrics)\]

## Fields and resources

Fields are the named elements and attributes associated with Tableau Server resources, such as workbooks, data sources, projects, views, and owners. For example, the fields of the `workbooks` resource includes the workbook `id`, the workbook `name`. Depending upon the resource, the fields can include additional attributes and elements for child or sub-resources, such as the project name (`project.name`) and id (`project.id`), and description (`project.description`), .or owner attributes, and tags .

By default, methods like [Query Workbooks for Site](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#query_workbooks_for_site) return information about all of the workbooks on a Tableau Server site. If you are only interested in a subset of these, for example the names of the workbooks, you could search through the response data for the workbook names. But if there are a large number of workbooks, you could be looking through pages of data. You could filter the response data by using filtering and sorting, but that requires that you know what the names are to setup the filters. Starting in REST API 2.5 (Tableau 10.2), you can add _field expressions_ to the query string of the URI. By adding a field expression, you can tailor the response to return only the data for the resource elements you are interested in.

You add a field expression as a query string using the following general format:

`<URI>**?fields****=**<field-expression>`  

For example, you could use a field expression to query a Tableau Server for the just the names of the workbooks:

`http://localhost/api/2.5/sites/1a10f5b9-029b-43e4-a620-773d1690338c/workbooks?**fields=name**`

In this case, the method queries a Tableau Server site and only the names of workbooks are returned in the response packet.

<tsResponse http://tableau.com/api/ts-api-2.5.xsd">
    <pagination pageNumber="1" pageSize="100" totalAvailable="11" />
    <workbooks>
        <workbook name="Superstore" />
        <workbook name="Regional" />
        <workbook name="Backgrounder" />
        <workbook name="ClusterController" />
        <workbook name="Config" />
        <workbook name="VizqlServer" />
        <workbook name="Netstat" />
        <workbook name="Apache" />
        <workbook name="VizqlDesktop" />
    </workbooks>
</tsResponse>

## Creating field expressions

You can create field expressions to use with a set of REST API query methods for Tableau Server resources. The resources are workbooks, data sources, views, and users. Each resource has a set of fields (for example, the name or id of a workbook or owner. In addition, each resource can contain additional elements (or sub-resources). For example, a workbook contains project resource. You can combine fields and resources to create complex field expressions. For example, you can query for the names of all the workbooks and the names of the projects associated with those workbooks.

### **Field expression syntax**

A field expression has the following syntax:

`**fields=**[keyword,][field, | resource, | resource.field,]...`

**Note:** Field names, keywords, and resources are case sensitive.

`keyword`

(Optional) The `keyword` option can take two values. If you do not specify a field expression with your query, the response returns a default set of fields. If specified, the `keyword` must appear as the first value in the field expression.

<table class="api-error-table"><colgroup><col> <col></colgroup><tbody><tr><th>Keyword</th><th>Description</th></tr><tr><td><code>_all_</code></td><td>Returns all the available fields for the requested resource and any additional nested-resources. You can use this value to determine what the available fields are for a given resource.</td></tr><tr><td><code>_default_&nbsp;</code></td><td>Returns the default fields for the requested resource and the default fields for any additional nested resources. The default fields are the same fields that are returned by the query method before any field expression is added. You can combine the <code>_default_</code> keyword in field expressions with additional fields or resources to return all the default fields and ones that are not part of the default set (for example, <code>Fields=_default_,owner.name</code>).</td></tr></tbody></table>

`field`

Specifies the element of the resource that should be returned from the query. The fields that are available depend upon the method and resource that is the object of the query, and whether the query `keyword` asks for all fields (`_all_)` or the default fields (`_default_`).

`resource`

Specifies the additional (or nested) resource that should be returned from the query. The additional resources depend upon the method and resource that is the object of the query, and whether the query `keyword` asks for all fields (`_all_)` or the default fields (`_default_`). You do not need to specify the resource already queried by the method. For example, if you use [Query Workbooks for Site](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#query_workbooks_for_site), you do not need to specify `workbook` as a resource.

## Resources and fields by method

The following table shows the fields and resources that are available for the currently supported endpoints. The default fields and resources are included when you call the method without a field expression, or when you specify the keyword `_default_` in the field expression. Additional fields are returned when you use the `_all_` keyword in the field expression.

To specify fields for the supported resources, you use the dot notation, for example, `project.id` or `owner.siteRole`.

To specify non-default fields that are elements of a resource, such as the name of the owner of a project or the id of a workbook containing a specified view, you can combine the default keyword with additional fields to return just the information you are interested in (for example, `?fields=_default_,owner.name`)

<table class="api-error-table">
                    <colgroup><col>
                    <col>
                    <col>
                    <col>
                    <col style="width: 90px;">
                    <col style="width: 90px;">
                    </colgroup><tbody>
                        <tr>
                            <td colspan="6"><a href="https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#query_datasources"></a><a name="query_datasources"></a>Query Datasources Fields
					 <span class="caption">(Fields in bold face are included in the response by default.)</span> </td>
                        </tr>
                        <tr>
                            <td>
                                <p>Datasource</p>
                                <p class="note">Use either:<br> <code>datasource.<i>field</i></code> <br>or: <code><i>field</i></code></p>
                                <p><strong><code>contentUrl</code></strong>
                                </p>
                                <p><strong><code>id</code></strong>
                                </p>
                                <p><strong><code>name</code></strong>
                                </p>
                                <p><strong><code>type</code></strong>
                                </p>
                                <p><strong><code>description</code></strong>
                                </p>
                                <p><strong><code>createdAt</code></strong>
                                </p>
                                <p><strong><code>updatedAt</code></strong>
                                </p>
                                <p><strong><code>encryptExtracts</code></strong>
                                </p>
                                <p><strong><code>isCertified</code></strong>
                                </p>
                                <p><strong><code>useRemoteQueryAgent</code></strong>
                                </p>
                                <p><strong><code>webPageUrl</code></strong>
                                </p>
                                <p><strong><code>size</code></strong>
                                </p>
                                <p><strong><code>tag</code></strong>
                                </p>
                                <p><code>favoritesTotal</code>
                                </p>
                                <p><code>databaseName</code>
                                </p>
                                <p><code>connectedWorkbooksCount</code>
                                </p>
                                <p><code>hasAlert</code>
                                </p>
                                <p><code>hasExtracts</code>
                                </p>
                                <p><code>isPublished</code>
                                </p>
                                <p><code>serverName</code>
                                </p>
                            </td>
                            <td>
                                <p>Owner</p>
                                <p class="note">Use:<br> <code>_default_,owner.<i>sub-field</i></code></p>
                                <p><strong><code>owner.id</code></strong>
                                </p>
                                <p><strong><code>owner.name</code></strong>
                                </p>
                                <p><code>owner.fullName</code> </p>
                                <p><code>owner.siteRole</code> </p>
                                <p><code>owner.lastLogin</code> </p>
                                <p><code>owner.email</code> </p>
                            </td>
                            <td>
                                <p>Project</p>
                                <p class="note">Use:<br> <code>_default_,project.<i>sub-field</i></code></p>
                                <p><strong><code>project.id</code></strong>
                                </p>
                                <p><strong><code>project.name</code></strong>
                                </p>
                                <p><code>project.description</code>
                                </p>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="6"><a name="get-users_site"></a><a href="https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#get_users_on_site">Get Users on Site</a>  Fields
					<span class="caption">(Fields in bold face are included in the response by default.)</span> </td>
                        </tr>
                        <tr>
                            <td>
                                <p>User</p>
                                <p class="note">Use either:<br> <code>user.<i>field</i></code> <br>or <code><i>field</i></code></p>
                                <p> <strong><code>externalAuthUserId</code></strong></p>
                                <p> <strong><code>id</code></strong></p>
                                <p><strong><code>name</code></strong>
                                </p>
                                <p><strong><code>siteRole</code></strong>
                                </p>
                                <p><strong><code>lastLogin</code></strong>
                                </p>
                                <p><code>fullName</code>
                                </p>
                                <p><code>email</code>
                                </p>
                                <p><i>For servers configured with <br><a href="https://help.tableau.com/current/server/en-us/saml_site_specific.htm" target="_blank" rel="noopener noreferrer">site-specific SAML</a>:</i>
                                    <br><strong><code>authSetting</code></strong>
                                </p>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="6"><a href="https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#query_views_for_site"></a><a name="query_views_site"></a>Query Views for Site Fields
 				    <span class="caption">(Fields in bold face are included in the response by default.)</span> </td>
                        </tr>
                        <tr>
                            <td>
                                <p>View</p>
                                <p class="note">Use either:<br> <code>view.<i>field</i></code> <br>or <code><i>field</i></code></p>
                                <p><strong><code>id</code></strong>
                                </p>
                                <p><strong><code>name</code></strong>
                                </p>
                                <p><strong><code>contentUrl</code></strong>
                                </p>
                                <p><strong><code>createdAt</code></strong>
                                </p>
                                <p><strong><code>updatedAt</code></strong>
                                </p>
                                <p><strong><code>tags</code></strong>
                                </p>
                                <p><code>sheetType</code>
                                </p>
                                <p><code>usage</code>
                                </p>
                            </td>
                            <td>
                                <p>Workbook</p>
                                <p class="note">Use:<br> <code>_default_,workbook.<i>sub-field</i></code></p>
                                <p><strong><code>workbook.id</code></strong>
                                </p>
                                <p><code>workbook.description</code>
                                </p>
                                <p><code>workbook.name</code>
                                </p>
                                <p><code>workbook.contentUrl</code>
                                </p>
                                <p><code>workbook.showTabs</code>
                                </p>
                                <p><code>workbook.size</code>
                                </p>
                                <p><code>workbook.createdAt</code>
                                </p>
                                <p><code>workbook.updatedAt</code>
                                </p>
                                <p><code>workbook.sheetCount</code>
                                </p>
                                <p><code>workbook.hasExtracts</code>
                                </p>
                                <p><code>workbook.tags</code>
                                </p>
                            </td>
                            <td>
                                <p>Owner</p>
                                <p class="note">Use:<br> <code>_default_,owner.<i>sub-field</i></code></p>
                                <p><strong><code>owner.id</code></strong>
                                </p>
                                <p><code>owner.name</code>
                                </p>
                                <p><code>owner.fullName</code>
                                </p>
                                <p><code>owner.siteRole</code>
                                </p>
                                <p><code>owner.lastLogin</code>&nbsp;</p>
                                <p><code>owner.email</code>
                                </p>
                            </td>
                            <td>
                                <p>Project</p>
                                <p class="note">Use:<br> <code>_default_,project.<i>sub-field</i></code></p>
                                <p><strong><code>project.id</code></strong>
                                </p>
                                <p><code>project.name</code>
                                </p>
                                <p><code>project.description</code>
                                </p>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="6"><a href="https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#query_workbooks_for_site"></a><a name="query_workbooks_site"></a>Query Workbooks for Site Fields
					<span class="caption">(Fields in bold face are included in the response by default.)</span> </td>
                        </tr>
                        <tr>
                            <td>
                                <p>Workbook</p>
                                <p class="note">Use either:<br> <code>workbook.<i>field</i></code> <br>or <code><i>field</i></code></p>
                                <p><strong><code>description</code></strong>
                                </p>
                                <p><strong><code>id</code></strong>
                                </p>
                                <p><strong><code>name</code></strong>
                                </p>
                                <p><strong><code>contentUrl</code></strong>
                                </p>
                                <p><strong><code>showTabs</code></strong>
                                </p>
                                <p><strong><code>webpageUrl</code></strong>
                                </p>
                                <p><strong><code>size</code></strong>
                                </p>
                                <p><strong><code>createdAt</code></strong>
                                </p>
                                <p><strong><code>updatedAt</code></strong>
                                </p>
                                <p><strong><code>encryptExtracts</code></strong>
                                </p>
                                <p><strong><code>defaultViewId</code></strong>
                                </p>
                                <p><strong><code>tag</code></strong>
                                </p>
                                <p><code>sheetCount</code>
                                </p>
                                <p><code>hasExtracts</code>
                                </p>
                            </td>
                            <td>
                                <p>Owner</p>
                                <p class="note">Use:<br> <code>_default_,owner.<i>sub-field</i></code></p>
                                <p><strong><code>owner.id</code></strong>
                                </p>
                                <p><strong><code>owner.name</code></strong>
                                </p>
                                <p><code>owner.fullName</code>
                                </p>
                                <p><code>owner.siteRole</code>
                                </p>
                                <p><code>owner.lastLogin</code>
                                </p>
                                <p><code>owner.email</code>
                                </p>
                            </td>
                            <td>
                                <p>Project</p>
                                <p class="note">Use:<br> <code>_default_,project.<i>sub-field</i></code></p>
                                <p><strong><code>project.id</code></strong>
                                </p>
                                <p><code>project.name</code>
                                </p>
                                <p><code>project.description</code>
                                </p>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="6"><a href="https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref_projects.htm#query_projects"></a><a name="query_projects"></a>Query Projects  Fields
					<span class="caption">(Fields in bold face are included in the response by default.)</span> </td>
                        </tr>
                        <tr>
                            <td>
                                <p>Project</p>
                                <p class="note">Use either:<br> <code>project.<i>field</i></code> <br>or <code><i>field</i></code></p>
                                <p><strong><code>id</code></strong>
                                </p>
                                <p><strong><code>name</code></strong>
                                </p>
                                <p><strong><code>description</code></strong>
                                </p>
                                <p><strong><code>createdAt</code></strong>
                                </p>
                                <p><strong><code>updatedAt</code></strong>
                                </p>
                                <p><strong><code>contentPermissions</code></strong>
                                </p>
                                <p><strong><code>parentProjectId</code></strong>
                                </p>
                                <p><code>topLevelProject</code>
                                </p>
                                <p><code>writeable</code>
                                </p>
                                <p>&nbsp;</p>
                            </td>
                            <td>
                                <p>Owner</p>
                                <p class="note">Use:<br> <code>_default_,owner.<i>sub-field</i></code></p>
                                <p><strong><code>owner.id</code></strong>
                                </p>
                                <p><code>owner.name</code>
                                </p>
                                <p><code>owner.fullName</code>
                                </p>
                                <p><code>owner.siteRole</code>
                                </p>
                                <p><code>owner.lastLogin</code>
                                </p>
                                <p><code>owner.email</code>
                                </p>
                                <p>&nbsp;</p>
                            </td>
                            <td>
                                <p>Contents Counts</p>
                                <p class="note">Use:<br> <code>_default_,contentsCounts.<i>sub-field</i></code></p>
                                <p><code>contentsCounts.projectCount </code>
                                </p>
                                <p><code>contentsCounts.viewCount</code>
                                </p>
                                <p><code>contentsCounts.datasourceCount</code>
                                </p>
                                <p><code>contentsCounts.workbookCount</code>
                                </p>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="6"><a href="https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref_projects.htm#query_jobs"></a><a name="query_jobs"></a>Query Jobs Fields (Fields in bold face are included in the response by default.)</td>
                        </tr>
                        <tr>
                            <td>
                                <p>Background Job</p>
                                <p class="note">Use either:<br><code>job.<i>field</i></code><br>or <code><i>field</i></code></p>
                                <p style="font-weight: bold;"><code>id</code>
                                </p>
                                <p style="font-weight: bold;"><code>status</code>
                                </p>
                                <p style="font-weight: bold;"><code>createdAt</code>
                                </p>
                                <p style="font-weight: bold;"><code>startedAt</code>
                                </p>
                                <p style="font-weight: bold;"><code>endedAt</code>
                                </p>
                                <p style="font-weight: bold;"><code>priority</code>
                                </p>
                                <p style="font-weight: bold;"><code>jobType</code>
                                </p>
                                <p><code>title</code>
                                </p>
                                <p><code>subtitle</code>
                                </p>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="6"><a name="query_groups"></a><a href="https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref_projects.htm#query_groups">Query Groups</a> Fields (Fields in bold face are included in the response by default.)</td>
                        </tr>
                        <tr>
                            <td>
                                <p>Group</p>
                                <p class="note">Use either:<br><code>group.<i>field</i></code><br>or <code><i>field</i></code></p>
                                <p style="font-weight: bold;"><code>id</code>
                                </p>
                                <p style="font-weight: bold;"><code>name</code>
                                </p>
                                <p style="font-weight: bold;"><code>domain name</code>
                                </p>
                                <p style="font-weight: normal;"><code>userCount</code>
                                </p>
                                <p style="font-weight: normal;"><code>minimumSiteRole</code>
                                </p>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="6"><a name="get_favorites_user"></a><a href="https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref_projects.htm#get_favorites_for_user">Get Favorites for User</a> Fields (Fields in bold face are included in the response by default.)</td>
                        </tr>
                        <tr>
                            <td>
                                <p>Favorites</p>
                                <p class="note">Use either:<br><code>favorite.<i>field</i></code><br>or <code><i>field</i></code></p>
                                <p><code style="font-weight: bold;">label</code>
                                </p>
                                <p><code>parentProjectName</code>
                                </p>
                                <p><code>targetOwnerName</code>
                                </p>
                            </td>
                            <td>
                                <p>Datasource</p>
                                <p class="note">Use:<br><code>_default_,datasource.<i>sub-field</i></code></p>
                                <p style="font-weight: bold;"><code>datasource.id</code>
                                </p>
                                <p style="font-weight: bold;"><code>datasource.name</code>
                                </p>
                                <p style="font-weight: bold;"><code>datasource.description</code>
                                </p>
                                <p style="font-weight: bold;"><code>datsource.contentUrl</code>
                                </p>
                                <p style="font-weight: bold;"><code>datasource.type</code>
                                </p>
                                <p style="font-weight: bold;"><code>datasource.createdAt</code>
                                </p>
                                <p style="font-weight: bold;"><code>datasource.updatedAt</code>
                                </p>
                                <p style="font-weight: bold;"><code>datsource.encryptExtracts</code>
                                </p>
                                <p style="font-weight: bold;"><code>datasource.isCertified</code>
                                </p>
                                <p style="font-weight: bold;"><code>datasource.useRemoteQueryAgent</code>
                                </p>
                                <p style="font-weight: bold;"><code>datasource.webpageUrl</code>
                                </p>
                                <p><code>datasource.serverName</code>
                                </p>
                                <p><code>datasource.databaseName</code>
                                </p>
                            </td>
                            <td>
                                <p>Project</p>
                                <p class="note">Use:<br><code>_default_,project.<i>sub-field</i></code></p>
                                <p><code style="font-weight: bold;">project.id</code>
                                </p>
                                <p style="font-weight: bold;"><code>project.name</code>
                                </p>
                                <p style="font-weight: bold;"><code>project.description</code>
                                </p>
                            </td>
                            <td>
                                <p>User</p>
                                <p class="note">Use:<br><code>_default_,user.<i>sub-field</i></code></p>
                                <p>&nbsp;</p><code><b>user.id</b></code>
                                <p><code>user.name</code>
                                </p>
                                <p><code>user.fullName</code>
                                </p>
                                <p><code>user.siteRole</code>
                                </p>
                                <p><code>LastLogin</code>
                                </p>
                                <p><code>Email</code>
                                </p>
                            </td>
                            <td>
                                <p>Workbook</p>
                                <p class="note">Use:<br><code>_default_,workbook.<i>sub-field</i></code></p>
                                <p>&nbsp;</p><code><b>workbook.id</b></code>
                                <p style="font-weight: bold;"><code>workbook.name</code>
                                </p>
                                <p style="font-weight: bold;"><code>workbook.description</code>
                                </p>
                                <p style="font-weight: bold;"><code>workbook.contentUrl</code>
                                </p>
                                <p style="font-weight: bold;"><code>workbook.showTabs</code>
                                </p>
                                <p style="font-weight: bold;"><code>workbook.tags</code>
                                </p>
                                <p style="font-weight: bold;"><code>workbook.size</code>
                                </p>
                                <p style="font-weight: bold;"><code>workbook.createdAt</code>
                                </p>
                                <p style="font-weight: bold;"><code>workbook.updatedAt</code>
                                </p>
                                <p><code>sheetCount</code>
                                </p>
                                <p><code>hasExtracts</code>
                                </p>
                            </td>
                            <td>
                                <p>View</p>
                                <p class="note">Use:<br><code>_default_,view.<i>sub-field</i></code></p>
                                <p><code style="font-weight: bold;">view.id</code>
                                </p>
                                <p style="font-weight: bold;"><code>view.name</code>
                                </p>
                                <p style="font-weight: bold;"><code>view.contentUrl</code>
                                </p>
                                <p style="font-weight: bold;"><code>view.createdAt</code>
                                </p>
                                <p style="font-weight: bold;"><code>view.updatedAt</code>
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6">
                                <p><a name="list_metrics"></a><a href="https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#list-metrics-for-site">List Metrics for Site</a> Fields
						(Fields in bold face are included in the response by default.)</p>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <p>Metrics</p>
                                <p class="note">Use either:<br><code>metric.<i>field</i></code><br>or <code><i>field</i></code></p>
                                <p><code style="font-weight: bold;">id</code>
                                </p>
                                <p><code style="font-weight: bold;">name</code>
                                </p>
                            </td>
                            <td>
                                <p>Owner</p>
                                <p class="note">Use:<br><code>_default_,owner.<i>sub-field</i></code></p>
                                <p><code style="font-weight: bold;">owner.id</code>
                                </p>
                                <p><code>owner.name</code>
                                </p>
                                <p><code>owner.fullName</code>
                                </p>
                                <p><code>owner.siteRole</code>
                                </p>
                                <p><code>owner.lastLogin</code>
                                </p>
                                <p><code>owner.email</code>
                                </p>
                            </td>
                            <td>
                                <p>Project</p>
                                <p class="note">Use:<br><code>_default_,owner.<i>sub-field</i></code></p>
                                <p><code style="font-weight: bold;">project.id</code>
                                </p>
                                <p><code style="font-weight: bold;">project.name</code>
                                </p>
                                <p><code>project.description</code>
                                </p>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="6">
                                <p colspan="6"><a name="list_custom_views"></a><a href="https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_ref.htm#list_custom_views">List Custom Views</a> Fields
						(Fields in bold face are included in the response by default.)</p>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <p>Custom Views</p>
                                <p><code style="font-weight: bold;">id</code>
                                </p>
                                <p><code style="font-weight: bold;">name</code>
                                </p>
                                <p><code style="font-weight: bold;">createdAt</code>
                                </p>
                                <p><code style="font-weight: bold;">updatedAt</code>
                                </p>
                                <p><code style="font-weight: bold;">shared</code>
                                </p>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                    </tbody>
                </table>

## Combining field expression with filtering and sorting

You can combine field expressions with filtering and sorting to further refine the data you want returned from the method. For example, you can filter on the date a workbook was last updated and then combine that with the field expression to return just the names of the workbooks that meet that criteria. You combine expressions using an ampersand (**&**). The URI and query string to return workbook names that were updated after a specified date might look like the following:

http://localhost/api/2.5/sites/1a10f5b9-029b-43e4-a620-773d1690338c/workbooks?filter=updatedAt:gte:2016-10-27T00:49:27Z&fields=name

Note that the fields supported by the `?filter=` and `?sort=` expressions might differ from the fields and resources that you can use in `?fields=` expressions. For information about the fields that can be used for filtering and sorting see, [Filtering and Sorting in the Tableau REST API](https://help.tableau.com/v0.0/api/rest_api/en-us/REST/rest_api_concepts_filtering_and_sorting.htm).

## Examples of using fields in the REST API

**Example 1:** The following URI shows the query to return just the id of the workbooks on the Tableau Server.

`http://localhost/api/2.5/sites/1a10f5b9-029b-43e4-a620-773d1690338c/workbooks?fields=id`

**Example 2:** The following example returns the default fields and the additional specified fields (owner name, project description) for the resource workbooks.

`http://localhost/api/2.5/sites/1a10f5b9-029b-43e4-a620-773d1690338c/workbooks?fields=_default_,owner.name,project.description`

**Example 3:** The following example returns the name of the workbooks and the default fields for the projects associated with the workbooks. In this case, the default fields are the project name and id.  Because this URI queries the workbook resource, it is not necessary to specify `workbook.name`. You could also use `?fields=name`.

`http://localhost/api/2.5/sites/1a10f5b9-029b-43e4-a620-773d1690338c/workbooks?fields=workbook.name,project`

**Example 4:** The following example combines the field expression and sorting. The query returns the names and usage data of the views and sorts the response by the workbook name.

`http://localhost/api/2.5/sites/1a10f5b9-029b-43e4-a620-773d1690338c/views?fields=name,usage&sort=name:asc`