Skip to main content

CopyCourse

Create a new session of course

CopyCourse(
idToCopy: UUID!
title: String!
startDate: Date
endDate: Date
): Course!

Directives

authAccess

This requires the current user to be in MANAGER role.

Arguments

CopyCourse.idToCopy ● UUID! non-null scalar

CopyCourse.title ● String! non-null scalar

CopyCourse.startDate ● Date scalar

CopyCourse.endDate ● Date scalar

Type

Course object

Examples

Run in Postman

Query:

CopyCourse(
$idToCopy: UUID!,
$title: String!,
$startDate: Date,
$endDate: Date
) {
CopyCourse(
idToCopy: $idToCopy,
title: $title,
startDate: $startDate,
endDate: $endDate
) {
id
createdAt
updatedAt
slug
status
title
sessionIsTitled
sampleLesson {
...LessonFragment
}
sampleLessonId
sections {
...SectionFragment
}
appearanceBlock
appearanceHash
paywallsBlock
termsBlock
confirmationBlock
courseStartDate
courseEndDate
enrollmentStartDate
enrollmentEndDate
gracePeriodEndDate
seatsLimit
waitlistCount
seatsLimitMet
waitlistingEnabled
waitlistingTriggered
taxable
purchasable
taxCategory
fulfillmentCenter
courseGroup {
...CourseGroupFragment
}
syllabusTitlesEnabled
galleryEnabled
workbookEnabled
linkedWorkbookEnabled
linkedWorkbookSkipEnabled
superquizEnabled
discussionsEnabled
resourcesEnabled
meetingsOverviewEnabled
instructorAccessEnabled
instructorEmails
freeWithRegistration
priceInCents
instructorAccessPriceInCents
suggestedRetailPriceInCents
alternativePricingType
alternativePricingRef
accessDays
showProgress
forceLinearProgress
completionTimePerPage
askLearnerPassword
roster
topicGroupId
sku
prerequisiteCourses {
...CourseFragment
}
prerequisiteLearningPaths {
...LearningPathFragment
}
parentCourseId
isChild
hasMultipleCurrencies
prices {
...ItemPriceFragment
}
enrollmentActive
waitlistActive
webinarDates {
...DateRangeFragment
}
webinarTimeZone
meetings {
...MeetingFragment
}
inPersonEventInfo {
...InPersonEventInfoFragment
}
currentUserHasAccess
location {
...LocationFragment
}
displayMap
publishDate
isActive
futurePublishDate
balanceRequirement
awardClaimingOptions {
...CourseAwardClaimingOptionFragment
}
availabilityStatus
embeddedEnabled
displayResults
bulkPurchasingEnabled
seatTiers {
...SeatTierFragment
}
seatPackages {
...SeatPackageFragment
}
lastTierPriceInCents
webinarId
hasChildren
customFields
kind
rosterSubmittedDate
finalAssessment
scormCollectUserDetails
seatsUsedCount
seatsAllocatedCount
webinarDetails {
...WebinarBlockFragment
}
showSyllabusWhileUnenrolled
topicGroup {
...TopicGroupFragment
}
courseGroupTitle
}
}

Variables:

{
"idToCopy": "UUID",
"title": "abc123",
"startDate": "2023-10-25T21:21:41.316Z",
"endDate": "2023-04-25T21:21:41.316Z"
}

Response:

{
"data": {
"CopyCourse": {
"id": "7f1b0397-fbc8-4efe-9159-4bba662cb2f5",
"createdAt": "2023-10-25T21:21:41.316Z",
"updatedAt": "2023-10-25T21:21:41.316Z",
"slug": "Slug",
"status": "draft",
"title": "xyz789",
"sessionIsTitled": true,
"sampleLesson": "Lesson",
"sampleLessonId": "7f1b0397-fbc8-4efe-9159-4bba662cb2f5",
"sections": [
"Section"
],
"appearanceBlock": "7f1b0397-fbc8-4efe-9159-4bba662cb2f5",
"appearanceHash": "xyz789",
"paywallsBlock": "7f1b0397-fbc8-4efe-9159-4bba662cb2f5",
"termsBlock": "7f1b0397-fbc8-4efe-9159-4bba662cb2f5",
"confirmationBlock": "7f1b0397-fbc8-4efe-9159-4bba662cb2f5",
"courseStartDate": "2023-10-25T21:21:41.316Z",
"courseEndDate": "2023-04-25T21:21:41.316Z",
"enrollmentStartDate": "2023-10-25T21:21:41.316Z",
"enrollmentEndDate": "2023-04-25T21:21:41.316Z",
"gracePeriodEndDate": "2023-10-25T21:21:41.316Z",
"seatsLimit": 561,
"waitlistCount": 561,
"seatsLimitMet": false,
"waitlistingEnabled": true,
"waitlistingTriggered": false,
"taxable": true,
"purchasable": true,
"taxCategory": "7f1b0397-fbc8-4efe-9159-4bba662cb2f5",
"fulfillmentCenter": "7f1b0397-fbc8-4efe-9159-4bba662cb2f5",
"courseGroup": "courseGroup-1",
"syllabusTitlesEnabled": false,
"galleryEnabled": true,
"workbookEnabled": true,
"linkedWorkbookEnabled": false,
"linkedWorkbookSkipEnabled": false,
"superquizEnabled": true,
"discussionsEnabled": false,
"resourcesEnabled": false,
"meetingsOverviewEnabled": true,
"instructorAccessEnabled": true,
"instructorEmails": [
"abc123"
],
"freeWithRegistration": true,
"priceInCents": 561,
"instructorAccessPriceInCents": 561,
"suggestedRetailPriceInCents": 561,
"alternativePricingType": "membership",
"alternativePricingRef": 561,
"accessDays": 561,
"showProgress": true,
"forceLinearProgress": false,
"completionTimePerPage": 561,
"askLearnerPassword": true,
"roster": true,
"topicGroupId": "7f1b0397-fbc8-4efe-9159-4bba662cb2f5",
"sku": "abc123",
"prerequisiteCourses": [
"Course"
],
"prerequisiteLearningPaths": [
"LearningPath"
],
"parentCourseId": "7f1b0397-fbc8-4efe-9159-4bba662cb2f5",
"isChild": false,
"hasMultipleCurrencies": true,
"prices": [
"ItemPrice"
],
"enrollmentActive": false,
"waitlistActive": false,
"webinarDates": [
"DateRange"
],
"webinarTimeZone": "abc123",
"meetings": [
"Meeting"
],
"inPersonEventInfo": "InPersonEventInfo",
"currentUserHasAccess": false,
"location": "Location",
"displayMap": false,
"publishDate": "2023-10-25T21:21:41.316Z",
"isActive": false,
"futurePublishDate": "2023-04-25T21:21:41.316Z",
"balanceRequirement": 217.31,
"awardClaimingOptions": [
"CourseAwardClaimingOption"
],
"availabilityStatus": "abc123",
"embeddedEnabled": true,
"displayResults": false,
"bulkPurchasingEnabled": true,
"seatTiers": [
"SeatTier"
],
"seatPackages": [
"SeatPackage"
],
"lastTierPriceInCents": 561,
"webinarId": "abc123",
"hasChildren": true,
"customFields": "{}",
"kind": "microCourse",
"rosterSubmittedDate": "2023-10-25T21:21:41.316Z",
"finalAssessment": "abc123",
"scormCollectUserDetails": false,
"seatsUsedCount": 561,
"seatsAllocatedCount": 561,
"webinarDetails": "WebinarBlock",
"showSyllabusWhileUnenrolled": true,
"topicGroup": "TopicGroup",
"courseGroupTitle": "abc123"
}
}
}