# REST Resource: projects

- [Resource: Project](https://developers.google.com/apps-script/api/reference/rest/v1/projects#Project)
  - [JSON representation](https://developers.google.com/apps-script/api/reference/rest/v1/projects#Project.SCHEMA_REPRESENTATION)
- [User](https://developers.google.com/apps-script/api/reference/rest/v1/projects#User)
  - [JSON representation](https://developers.google.com/apps-script/api/reference/rest/v1/projects#User.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/apps-script/api/reference/rest/v1/projects#METHODS_SUMMARY)

## Resource: Project

The script project resource.

| JSON representation |
|---|
| ``` { "scriptId": string, "title": string, "parentId": string, "createTime": string, "updateTime": string, "creator": { object (`https://developers.google.com/apps-script/api/reference/rest/v1/projects#User`) }, "lastModifyUser": { object (`https://developers.google.com/apps-script/api/reference/rest/v1/projects#User`) } } ``` |

| Fields ||
|---|---|
| `scriptId` | `string` The script project's Drive ID. |
| `title` | `string` The title for the project. |
| `parentId` | `string` The parent's Drive ID that the script will be attached to. This is usually the ID of a Google Document or Google Sheet. This filed is optional, and if not set, a stand-alone script will be created. |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` When the script was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` When the script was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `creator` | ``object (`https://developers.google.com/apps-script/api/reference/rest/v1/projects#User`)`` User who originally created the script. |
| `lastModifyUser` | ``object (`https://developers.google.com/apps-script/api/reference/rest/v1/projects#User`)`` User who last modified the script. |

## User

A simple user profile resource.

| JSON representation |
|---|
| ``` { "domain": string, "email": string, "name": string, "photoUrl": string } ``` |

| Fields ||
|---|---|
| `domain` | `string` The user's domain. |
| `email` | `string` The user's identifying email address. |
| `name` | `string` The user's display name. |
| `photoUrl` | `string` The user's photo. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/apps-script/api/reference/rest/v1/projects/create` | Creates a new, empty script project with no script files and a base manifest file. |
| ### `https://developers.google.com/apps-script/api/reference/rest/v1/projects/get` | Gets a script project's metadata. |
| ### `https://developers.google.com/apps-script/api/reference/rest/v1/projects/getContent` | Gets the content of the script project, including the code source and metadata for each script file. |
| ### `https://developers.google.com/apps-script/api/reference/rest/v1/projects/getMetrics` | Get metrics data for scripts, such as number of executions and active users. |
| ### `https://developers.google.com/apps-script/api/reference/rest/v1/projects/updateContent` | Updates the content of the specified script project. |