[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis documentation details the Apps Script API for managing script projects, including creating, retrieving, and updating projects and their content.\u003c/p\u003e\n"],["\u003cp\u003eA script project is represented by properties like script ID, title, parent ID, creation and update timestamps, and creator/modifier user details.\u003c/p\u003e\n"],["\u003cp\u003eUser profiles associated with script projects contain domain, email, name, and photo URL information.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides methods to manage script projects: \u003ccode\u003ecreate\u003c/code\u003e, \u003ccode\u003eget\u003c/code\u003e, \u003ccode\u003egetContent\u003c/code\u003e, \u003ccode\u003egetMetrics\u003c/code\u003e, and \u003ccode\u003eupdateContent\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["- [Resource: Project](#Project)\n - [JSON representation](#Project.SCHEMA_REPRESENTATION)\n- [User](#User)\n - [JSON representation](#User.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Project The script project resource.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"scriptId\": string, \"title\": string, \"parentId\": string, \"createTime\": string, \"updateTime\": string, \"creator\": { object (/apps-script/api/reference/rest/v1/projects#User) }, \"lastModifyUser\": { object (/apps-script/api/reference/rest/v1/projects#User) } } ``` |\n\n| Fields ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `scriptId` | `string` The script project's Drive ID. |\n| `title` | `string` The title for the project. |\n| `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. |\n| `createTime` | `string (`[Timestamp](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\"`. |\n| `updateTime` | `string (`[Timestamp](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\"`. |\n| `creator` | `object (`[User](/apps-script/api/reference/rest/v1/projects#User)`)` User who originally created the script. |\n| `lastModifyUser` | `object (`[User](/apps-script/api/reference/rest/v1/projects#User)`)` User who last modified the script. |\n\nUser A simple user profile resource.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------|\n| ``` { \"domain\": string, \"email\": string, \"name\": string, \"photoUrl\": string } ``` |\n\n| Fields ||\n|------------|------------------------------------------------|\n| `domain` | `string` The user's domain. |\n| `email` | `string` The user's identifying email address. |\n| `name` | `string` The user's display name. |\n| `photoUrl` | `string` The user's photo. |\n\n| Methods ||\n|----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| [create](/apps-script/api/reference/rest/v1/projects/create) | Creates a new, empty script project with no script files and a base manifest file. |\n| [get](/apps-script/api/reference/rest/v1/projects/get) | Gets a script project's metadata. |\n| [getContent](/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. |\n| [getMetrics](/apps-script/api/reference/rest/v1/projects/getMetrics) | Get metrics data for scripts, such as number of executions and active users. |\n| [updateContent](/apps-script/api/reference/rest/v1/projects/updateContent) | Updates the content of the specified script project. |"]]