Zum Inhalt springen

createCourse

Creates a new course. It is subordinated to the parentID. The user must have insert access right on the parentID.

Type: CourseCreateResult!

Arguments

  • course: CourseCreateInput! — The course to create.
  • objectType: String — Object-type of the new object. If not providet, the default object type is taken. (deprecated: Use input.objectType)
  • parentID: ID — Parent object to subordinate the new object. Either a objectID, objectGUID or a specialtype. (deprecated: Use input.parentID)
mutation($course: CourseCreateInput!, $objectType: String, $parentID: ID) {
createCourse(course: $course, objectType: $objectType, parentID: $parentID) {
course {
acronym
autoCreateTicket
autoDisposePerson
childItemLinkType
courseGroupCode
courseVisible
finish
hasEducationPlan
hasMissingSubjectClasses
hasOnlyFlexSubjects
id
isCurrent
isPublishedOnline
isStarted
lessonCount
maximumParticipantCount
maximumWaitingListCount
meetingProvider
minimumParticipantCount
name
nameOnScreens
number
parentCourseCount
registrationFrom
registrationTo
showOnlineFrom
showOnlineTo
start
termDatesForCalendar
ticketDelivery
timePeriod
timePeriodCount
timePeriodName
totalRevenue
urlSlug
}
errorData
errorType
id
message
object {
accountingItemsAsText
aclInherit
categoriesAsString
code
createdAt
customNumber
hasChildren
hasReports
id
importID
isFavorite
isMember
isSubscribed
journalEntriesAsText
lastChangedAt
longName
membersAsText
name
numbering
objectGuid
objectName
objectTypeID
orderNr
orderType
parentObjectID
remarks
resourceBusyByTerms
shortName
specialType
suffix
suffixManual
thumbnail
validFrom
validTo
}
status
}
}