REST Resource: users.threads
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
리소스: Thread
JSON 표현 |
{
"id": string,
"snippet": string,
"historyId": string,
"messages": [
{
object (Message )
}
]
} |
필드 |
id |
string
스레드의 고유 ID입니다.
|
snippet |
string
메시지 텍스트의 일부입니다.
|
historyId |
string
이 대화목록을 수정한 마지막 기록의 ID입니다.
|
messages[] |
object (Message )
대화목록의 메시지 목록입니다.
|
메서드 |
|
지정된 대화목록을 즉시 영구적으로 삭제합니다. |
|
지정된 대화목록을 가져옵니다. |
|
사용자의 메일함에 있는 대화목록을 나열합니다. |
|
대화에 적용된 라벨을 수정합니다. |
|
지정된 대화목록을 휴지통으로 이동합니다. |
|
휴지통에서 지정된 대화목록을 삭제합니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[],[],null,["# REST Resource: users.threads\n\n- [Resource: Thread](#Thread)\n - [JSON representation](#Thread.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Thread\n----------------\n\nA collection of messages representing a conversation.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"snippet\": string, \"historyId\": string, \"messages\": [ { object (/workspace/gmail/api/reference/rest/v1/users.messages#Message) } ] } ``` |\n\n| Fields ||\n|--------------|---------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` The unique ID of the thread. |\n| `snippet` | `string` A short part of the message text. |\n| `historyId` | `string` The ID of the last history record that modified this thread. |\n| `messages[]` | `object (`[Message](/workspace/gmail/api/reference/rest/v1/users.messages#Message)`)` The list of messages in the thread. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------|-----------------------------------------------------------|\n| ### [delete](/workspace/gmail/api/reference/rest/v1/users.threads/delete) | Immediately and permanently deletes the specified thread. |\n| ### [get](/workspace/gmail/api/reference/rest/v1/users.threads/get) | Gets the specified thread. |\n| ### [list](/workspace/gmail/api/reference/rest/v1/users.threads/list) | Lists the threads in the user's mailbox. |\n| ### [modify](/workspace/gmail/api/reference/rest/v1/users.threads/modify) | Modifies the labels applied to the thread. |\n| ### [trash](/workspace/gmail/api/reference/rest/v1/users.threads/trash) | Moves the specified thread to the trash. |\n| ### [untrash](/workspace/gmail/api/reference/rest/v1/users.threads/untrash) | Removes the specified thread from the trash. |"]]