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 |
Creates a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course, create a topic in the requested course, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.
See: Google Classroom API Reference for classroom.courses.topics.create
.
Synopsis
- type CoursesTopicsCreateResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Topic :> Post '[JSON] Topic))))))))))
- coursesTopicsCreate :: Text -> Topic -> CoursesTopicsCreate
- data CoursesTopicsCreate
- ctctXgafv :: Lens' CoursesTopicsCreate (Maybe Xgafv)
- ctctUploadProtocol :: Lens' CoursesTopicsCreate (Maybe Text)
- ctctCourseId :: Lens' CoursesTopicsCreate Text
- ctctAccessToken :: Lens' CoursesTopicsCreate (Maybe Text)
- ctctUploadType :: Lens' CoursesTopicsCreate (Maybe Text)
- ctctPayload :: Lens' CoursesTopicsCreate Topic
- ctctCallback :: Lens' CoursesTopicsCreate (Maybe Text)
REST Resource
type CoursesTopicsCreateResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Topic :> Post '[JSON] Topic)))))))))) Source #
A resource alias for classroom.courses.topics.create
method which the
CoursesTopicsCreate
request conforms to.
Creating a Request
Creates a value of CoursesTopicsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesTopicsCreate Source #
Creates a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course, create a topic in the requested course, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.
See: coursesTopicsCreate
smart constructor.
Instances
Request Lenses
ctctUploadProtocol :: Lens' CoursesTopicsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ctctCourseId :: Lens' CoursesTopicsCreate Text Source #
Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.
ctctAccessToken :: Lens' CoursesTopicsCreate (Maybe Text) Source #
OAuth access token.
ctctUploadType :: Lens' CoursesTopicsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ctctPayload :: Lens' CoursesTopicsCreate Topic Source #
Multipart request metadata.
ctctCallback :: Lens' CoursesTopicsCreate (Maybe Text) Source #
JSONP