Copyright | (c) 2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Modifies the labels applied to the thread. This applies to all messages in the thread.
See: Gmail API Reference for gmail.users.threads.modify
.
- type UsersThreadsModifyResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("threads" :> (Capture "id" Text :> ("modify" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` ModifyThreadRequest :> Post `[JSON]` Thread))))))))
- usersThreadsModify :: ModifyThreadRequest -> Text -> Text -> UsersThreadsModify
- data UsersThreadsModify
- utmPayload :: Lens' UsersThreadsModify ModifyThreadRequest
- utmUserId :: Lens' UsersThreadsModify Text
- utmId :: Lens' UsersThreadsModify Text
REST Resource
type UsersThreadsModifyResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("threads" :> (Capture "id" Text :> ("modify" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` ModifyThreadRequest :> Post `[JSON]` Thread)))))))) Source
A resource alias for gmail.users.threads.modify
method which the
UsersThreadsModify
request conforms to.
Creating a Request
Creates a value of UsersThreadsModify
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersThreadsModify Source
Modifies the labels applied to the thread. This applies to all messages in the thread.
See: usersThreadsModify
smart constructor.
Request Lenses
utmPayload :: Lens' UsersThreadsModify ModifyThreadRequest Source
Multipart request metadata.
utmUserId :: Lens' UsersThreadsModify Text Source
The user's email address. The special value me can be used to indicate the authenticated user.
utmId :: Lens' UsersThreadsModify Text Source
The ID of the thread to modify.