Class CoursesResource.CreateRequest
Creates a course. The user specified in ownerId
is the owner of the created course and added as a teacher.
A non-admin requesting user can only create a course with themselves as the owner. Domain admins can create
courses owned by any user within their domain. This method returns the following error codes: *
PERMISSION_DENIED
if the requesting user is not permitted to create courses or for access errors. *
NOT_FOUND
if the primary teacher is not a valid user. * FAILED_PRECONDITION
if the course owner's
account is disabled or for the following request errors: * UserCannotOwnCourse *
UserGroupsMembershipLimitReached * ALREADY_EXISTS
if an alias was specified in the id
and already
exists.
Inheritance
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.CreateRequest : ClassroomBaseServiceRequest<Course>, IClientServiceRequest<Course>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Course)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Course body)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Course | body |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()