REST Resource: users.drafts
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
المرجع: مسودة
مسودة رسالة إلكترونية في صندوق البريد الإلكتروني للمستخدم
تمثيل JSON |
{
"id": string,
"message": {
object (Message )
}
} |
الحقول |
id |
string
رقم التعريف غير القابل للتغيير للمسودة.
|
message |
object (Message )
محتوى الرسالة في المسودة.
|
الطُرق |
|
لإنشاء مسودة جديدة باستخدام التصنيف DRAFT |
|
يؤدي هذا الخيار إلى حذف المسودة المحدّدة على الفور وبشكل نهائي. |
|
تحصل على المسودة المحدّدة. |
|
يعرض المسودات في صندوق البريد الإلكتروني للمستخدم. |
|
تُرسِل المسودة الحالية المحدّدة إلى المستلمين في رؤوس To وCc وBcc . |
|
استبدال محتوى مسودة |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 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. |"]]