REST Resource: projects
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: โปรเจ็กต์
การแสดง JSON |
{
"scriptId": string,
"title": string,
"parentId": string,
"createTime": string,
"updateTime": string,
"creator": {
object (User )
},
"lastModifyUser": {
object (User )
}
} |
ช่อง |
scriptId |
string
รหัสไดรฟ์ของโปรเจ็กต์สคริปต์
|
title |
string
ชื่อสำหรับโปรเจ็กต์
|
parentId |
string
รหัสไดรฟ์ของผู้ปกครองที่จะแนบสคริปต์ ซึ่งโดยปกติจะเป็นรหัสของ Google เอกสารหรือ Google ชีต ไฟล์นี้ไม่บังคับ และหากไม่ได้ตั้งค่าไว้ ระบบจะสร้างสคริปต์แบบสแตนด์อโลนขึ้น
|
createTime |
string (Timestamp format)
เวลาที่สร้างสคริปต์ การประทับเวลาเป็น RFC3339 UTC "Zulu" โดยมีความละเอียดระดับนาโนวินาทีและมีเลขเศษส่วนสูงสุด 9 หลัก ตัวอย่าง: "2014-10-02T15:01:23Z" และ "2014-10-02T15:01:23.045123456Z"
|
updateTime |
string (Timestamp format)
อัปเดตสคริปต์ครั้งล่าสุดเมื่อใด การประทับเวลาเป็น RFC3339 UTC "Zulu" โดยมีความละเอียดระดับนาโนวินาทีและมีเลขเศษส่วนสูงสุด 9 หลัก ตัวอย่าง: "2014-10-02T15:01:23Z" และ "2014-10-02T15:01:23.045123456Z"
|
creator |
object (User )
ผู้ใช้ที่สร้างสคริปต์ขึ้นในตอนแรก
|
lastModifyUser |
object (User )
ผู้ใช้ที่แก้ไขสคริปต์ครั้งล่าสุด
|
ผู้ใช้
ทรัพยากรโปรไฟล์ผู้ใช้อย่างง่าย
การแสดง JSON |
{
"domain": string,
"email": string,
"name": string,
"photoUrl": string
} |
ช่อง |
domain |
string
โดเมนของผู้ใช้
|
email |
string
อีเมลที่ระบุของผู้ใช้
|
name |
string
ชื่อที่แสดงของผู้ใช้
|
photoUrl |
string
รูปภาพของผู้ใช้
|
เมธอด |
|
สร้างโปรเจ็กต์สคริปต์ใหม่ที่ว่างเปล่า ซึ่งไม่มีไฟล์สคริปต์และไฟล์ Manifest พื้นฐาน |
|
รับข้อมูลเมตาของโปรเจ็กต์สคริปต์ |
|
รับเนื้อหาของโครงการสคริปต์ รวมถึงซอร์สโค้ดและข้อมูลเมตาสำหรับไฟล์สคริปต์แต่ละไฟล์ |
|
รับข้อมูลเมตริกสำหรับสคริปต์ เช่น จำนวนการดำเนินการและผู้ใช้ที่ใช้งานอยู่ |
|
อัปเดตเนื้อหาของโปรเจ็กต์สคริปต์ที่ระบุ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\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,["# REST Resource: projects\n\n- [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\n-----------------\n\nThe 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\n----\n\nA 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. |"]]