임시 보관함
이 그룹의 모든 작업: 받는 값, 반환하는 값, 응답할 수 있는 오류.
작업
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오류 목록