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 one or more fields of a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding topic or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or topic does not exist
See: Google Classroom API Reference for classroom.courses.topics.patch
.
Synopsis
- type CoursesTopicsPatchResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (Capture "id" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Topic :> Patch '[JSON] Topic))))))))))))
- coursesTopicsPatch :: Text -> Topic -> Text -> CoursesTopicsPatch
- data CoursesTopicsPatch
- ctpXgafv :: Lens' CoursesTopicsPatch (Maybe Xgafv)
- ctpUploadProtocol :: Lens' CoursesTopicsPatch (Maybe Text)
- ctpUpdateMask :: Lens' CoursesTopicsPatch (Maybe GFieldMask)
- ctpCourseId :: Lens' CoursesTopicsPatch Text
- ctpAccessToken :: Lens' CoursesTopicsPatch (Maybe Text)
- ctpUploadType :: Lens' CoursesTopicsPatch (Maybe Text)
- ctpPayload :: Lens' CoursesTopicsPatch Topic
- ctpId :: Lens' CoursesTopicsPatch Text
- ctpCallback :: Lens' CoursesTopicsPatch (Maybe Text)
REST Resource
type CoursesTopicsPatchResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (Capture "id" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Topic :> Patch '[JSON] Topic)))))))))))) Source #
A resource alias for classroom.courses.topics.patch
method which the
CoursesTopicsPatch
request conforms to.
Creating a Request
Creates a value of CoursesTopicsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesTopicsPatch Source #
Updates one or more fields of a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding topic or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or topic does not exist
See: coursesTopicsPatch
smart constructor.
Instances
Request Lenses
ctpUploadProtocol :: Lens' CoursesTopicsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ctpUpdateMask :: Lens' CoursesTopicsPatch (Maybe GFieldMask) Source #
Mask that identifies which fields on the topic to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cleared by specifying it in the update mask and not in the Topic object. If a field that does not support empty values is included in the update mask and not set in the Topic object, an `INVALID_ARGUMENT` error will be returned. The following fields may be specified: * `name`
ctpCourseId :: Lens' CoursesTopicsPatch Text Source #
Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.
ctpAccessToken :: Lens' CoursesTopicsPatch (Maybe Text) Source #
OAuth access token.
ctpUploadType :: Lens' CoursesTopicsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ctpPayload :: Lens' CoursesTopicsPatch Topic Source #
Multipart request metadata.
ctpCallback :: Lens' CoursesTopicsPatch (Maybe Text) Source #
JSONP