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": "xyz789",
"startDate": "2023-12-20T16:58:58.782Z",
"endDate": "2024-06-20T16:58:58.782Z"
}

Response:

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