Copyright | (c) 2015-2016 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 |
Updates an existing annotation.
See: Books API Reference for books.mylibrary.annotations.update
.
Synopsis
- type MyLibraryAnnotationsUpdateResource = "books" :> ("v1" :> ("mylibrary" :> ("annotations" :> (Capture "annotationId" Text :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Annotation :> Put '[JSON] Annotation)))))))
- myLibraryAnnotationsUpdate :: Annotation -> Text -> MyLibraryAnnotationsUpdate
- data MyLibraryAnnotationsUpdate
- mlauPayload :: Lens' MyLibraryAnnotationsUpdate Annotation
- mlauAnnotationId :: Lens' MyLibraryAnnotationsUpdate Text
- mlauSource :: Lens' MyLibraryAnnotationsUpdate (Maybe Text)
REST Resource
type MyLibraryAnnotationsUpdateResource = "books" :> ("v1" :> ("mylibrary" :> ("annotations" :> (Capture "annotationId" Text :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Annotation :> Put '[JSON] Annotation))))))) Source #
A resource alias for books.mylibrary.annotations.update
method which the
MyLibraryAnnotationsUpdate
request conforms to.
Creating a Request
myLibraryAnnotationsUpdate Source #
Creates a value of MyLibraryAnnotationsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MyLibraryAnnotationsUpdate Source #
Updates an existing annotation.
See: myLibraryAnnotationsUpdate
smart constructor.
Instances
Request Lenses
mlauPayload :: Lens' MyLibraryAnnotationsUpdate Annotation Source #
Multipart request metadata.
mlauAnnotationId :: Lens' MyLibraryAnnotationsUpdate Text Source #
The ID for the annotation to update.
mlauSource :: Lens' MyLibraryAnnotationsUpdate (Maybe Text) Source #
String to identify the originator of this request.