REST Resource: users.drafts
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:草稿
JSON 表示法 |
{
"id": string,
"message": {
object (Message )
}
} |
欄位 |
id |
string
草稿的固定 ID。
|
message |
object (Message )
草稿的訊息內容。
|
方法 |
|
使用 DRAFT 標籤建立新草稿。 |
|
立即永久刪除指定的草稿。 |
|
取得指定的草稿。 |
|
列出使用者信箱中的草稿。 |
|
將指定的現有草稿傳送至 To 、Cc 和 Bcc 標頭中的收件者。 |
|
取代草稿內容。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# REST Resource: users.drafts\n\n- [Resource: Draft](#Draft)\n - [JSON representation](#Draft.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Draft\n---------------\n\nA draft email in the user's mailbox.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"message\": { object (/workspace/gmail/api/reference/rest/v1/users.messages#Message) } } ``` |\n\n| Fields ||\n|-----------|-------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` The immutable ID of the draft. |\n| `message` | `object (`[Message](/workspace/gmail/api/reference/rest/v1/users.messages#Message)`)` The message content of the draft. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|\n| ### [create](/workspace/gmail/api/reference/rest/v1/users.drafts/create) | Creates a new draft with the `DRAFT` label. |\n| ### [delete](/workspace/gmail/api/reference/rest/v1/users.drafts/delete) | Immediately and permanently deletes the specified draft. |\n| ### [get](/workspace/gmail/api/reference/rest/v1/users.drafts/get) | Gets the specified draft. |\n| ### [list](/workspace/gmail/api/reference/rest/v1/users.drafts/list) | Lists the drafts in the user's mailbox. |\n| ### [send](/workspace/gmail/api/reference/rest/v1/users.drafts/send) | Sends the specified, existing draft to the recipients in the `To`, `Cc`, and `Bcc` headers. |\n| ### [update](/workspace/gmail/api/reference/rest/v1/users.drafts/update) | Replaces a draft's content. |"]]