下書き
このグループのすべてのオペレーションの、受け付ける内容、返す内容、返しうるエラー。
オペレーション
GET/drafts
List drafts
Requires the drafts:read scope.
クエリパラメーター
querystringThe same search syntax as
GET /threads, read against each draft's subject, sender and the first 4,000 characters of its body. Plain words match loosely and a quoted phrase has to appear as written, filler words are dropped when something else is left to search for, and a value the search cannot use is ignored rather than narrowing. Recipients are not searched, soto:,cc:andbcc:match nothing here. The drafts folder always applies, soin:and folderis:operators cannot widen the search beyond drafts,in:anywhereincluded. A draft saved with no subject is stored as(no subject), sosubject:"no subject"finds it.limitintegerDrafts per page, a whole number from 1 to 100. Defaults to 25.
1以上100以下pageTokenstringOpaque. Pass back what you were given, never construct one.
戻り値
A page of drafts.
エラー
どのオペレーションも返しうるエラー400401403404422500エラー一覧
ほかの提供先
POST/drafts
Create a draft
GET/drafts/{id}
Retrieve a draft
Requires the drafts:read scope.
パスパラメーター
idstring必須Draft id, which starts with
draft-.
戻り値
The draft.
エラー
どのオペレーションも返しうるエラー400401403404422500エラー一覧
ほかの提供先
PATCH/drafts/{id}
Update a draft
A partial update, not an upsert. An unknown id, or the id of a thread that is not a draft, is a 404. The draft keeps the id you passed, and the response echoes it.
Requires the drafts:write scope.
パスパラメーター
idstring必須Draft id, which starts with
draft-.
戻り値
Saved.
エラー
どのオペレーションも返しうるエラー400401403404422500エラー一覧
ほかの提供先
DELETE/drafts/{id}
Delete a draft
Requires the drafts:write scope.
パスパラメーター
idstring必須Draft id, which starts with
draft-.
戻り値
Deleted.
エラー
どのオペレーションも返しうるエラー400401403404422500エラー一覧