รหัสไดรฟ์ของไฟล์หลักที่เชื่อมโยงกับโปรเจ็กต์สคริปต์ที่สร้างขึ้น ซึ่งโดยปกติจะเป็นรหัสของไฟล์ Google เอกสาร, Google ชีต, Google ฟอร์ม หรือ Google สไลด์ หากไม่ได้ตั้งค่า ระบบจะสร้างโปรเจ็กต์สคริปต์แบบสแตนด์อโลน
[[["เข้าใจง่าย","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"]],["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eCreates a new, empty script project with no script files and a base manifest file.\u003c/p\u003e\n"],["\u003cp\u003eThe request body can include a title for the project and the Drive ID of a parent file to bind the project to.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns a Project object representing the newly created script project.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/script.projects\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a new, empty script project with no script files and a base manifest file.\n\nHTTP request\n\n`POST https://script.googleapis.com/v1/projects`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nRequest body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------|\n| ``` { \"title\": string, \"parentId\": string } ``` |\n\n| Fields ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `title` | `string` The title for the project. |\n| `parentId` | `string` The Drive ID of a parent file that the created script project is bound to. This is usually the ID of a Google Doc, Google Sheet, Google Form, or Google Slides file. If not set, a standalone script project is created. |\n\nResponse body\n\nIf successful, the response body contains a newly created instance of [Project](/apps-script/api/reference/rest/v1/projects#Project).\n\nAuthorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/script.projects`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]