# REST Resource: projects.locations.teamFolders

- [Resource: TeamFolder](https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders#TeamFolder)
  - [JSON representation](https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders#TeamFolder.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders#METHODS_SUMMARY)

## Resource: TeamFolder

Represents a Dataform TeamFolder. This is a resource that sits at the project level and is used to organize Repositories and Folders with hierarchical access controls. They provide a team context and stricter access controls.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "createTime": string, "updateTime": string, "internalMetadata": string, "creatorIamPrincipal": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The TeamFolder's name. |
| `displayName` | `string` Required. The TeamFolder's user-friendly name. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp of when the TeamFolder was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp of when the TeamFolder was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `internalMetadata` | `string` Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. |
| `creatorIamPrincipal` | `string` Output only. The IAM principal identifier of the creator of the TeamFolder. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders/create` | Creates a new TeamFolder in a given project and location. |
| ### `https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders/delete` | Deletes a single TeamFolder. |
| ### `https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders/deleteTree` | Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and WorkflowConfigs). |
| ### `https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders/get` | Fetches a single TeamFolder. |
| ### `https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders/getIamPolicy` | Gets the access control policy for a resource. |
| ### `https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders/patch` | Updates a single TeamFolder. |
| ### `https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders/queryContents` | Returns the contents of a given TeamFolder. |
| ### `https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders/search` | Returns all TeamFolders in a given location that the caller has access to and match the provided filter. |
| ### `https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders/setIamPolicy` | Sets the access control policy on the specified resource. |
| ### `https://docs.cloud.google.com/dataform/reference/rest/v1/projects.locations.teamFolders/testIamPermissions` | Returns permissions that a caller has on the specified resource. |