對話動作已於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
Method: projects.draft.write
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
POST https://actions.googleapis.com/v2/{parent=projects/*}/draft:write
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。父項資源名稱,格式為 projects/{project} 。{project} 是與專案相關聯的雲端專案 ID。
|
要求主體
要求主體的資料會採用以下結構:
JSON 表示法 |
{
"files": {
object (Files )
}
} |
欄位 |
files |
object (Files )
必要欄位。一次傳送至伺服器的檔案清單。這是設定檔或資料檔案的清單。1. 第一個要求必須為 ConfigFile。2. 第一個要求必須具備含有「settings」的 ConfigFile。3. 第一個要求必須具備含有「manifest」的 ConfigFile。4. 與內嵌雲端函式相對應的 Webhook ConfigFile 必須先串流,才能位於對應至其原始碼的 DataFile 之前。
|
回應主體
如果成功,回應主體會含有以下結構的資料:
欄位 |
name |
string
草稿的專屬 ID,格式如下。projects/{project}/draft
|
validationResults |
object (ValidationResults )
與專案草稿內容相關的驗證結果。請注意,即使警告訊息不會封鎖草稿,但 draft.write 仍會更新草稿。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[[["容易理解","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 (世界標準時間)。"],[[["\u003cp\u003eUpdates a project draft using a POST request to a specific endpoint with gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eRequires path and request body parameters, including project ID and files for the draft.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain configuration files (settings and manifest) before any data files.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes the draft's unique identifier and any validation results, including warnings that do not block draft updates.\u003c/p\u003e\n"]]],[],null,[]]