Skip to main content

CreateInPersonEvent

Creates an in-person event with the data provided. The results of this mutation can be affected by providing an authToken header to set a user for the operation.

CreateInPersonEvent(
title: String!
language: String
startDate: Date!
endDate: Date!
contentType: String
meetings: [MeetingFields!]!
recurrence: String
): Course!

Directives

authAccess

This requires the current user to be in MANAGER role.

Arguments

CreateInPersonEvent.title ● String! non-null scalar

CreateInPersonEvent.language ● String scalar

CreateInPersonEvent.startDate ● Date! non-null scalar

CreateInPersonEvent.endDate ● Date! non-null scalar

CreateInPersonEvent.contentType ● String scalar

CreateInPersonEvent.meetings ● [MeetingFields!]! non-null input

CreateInPersonEvent.recurrence ● String scalar

RRULE string in the format defined by the iCalendar RFC. For example, these would be valid strings: FREQ=DAILY;INTERVAL=2;COUNT=4, FREQ=WEEKLY;COUNT=5, FREQ=YEARLY;COUNT=10. To get more information on formatting, see the documentation here [https://datatracker.ietf.org/doc/html/rfc5545]

Type

Course object

Examples

Run in Postman

Query:

CreateInPersonEvent(
$title: String!,
$language: String,
$startDate: Date!,
$endDate: Date!,
$contentType: String,
$meetings: [MeetingFields!]!,
$recurrence: String
) {
CreateInPersonEvent(
title: $title,
language: $language,
startDate: $startDate,
endDate: $endDate,
contentType: $contentType,
meetings: $meetings,
recurrence: $recurrence
) {
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
recurrenceRule
recurrence
readableRecurrenceString
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:

{
"title": "abc123",
"language": "xyz789",
"startDate": "2024-05-22T17:20:05.246Z",
"endDate": "2024-05-22T17:20:05.246Z",
"contentType": "abc123",
"meetings": [
"MeetingFields"
],
"recurrence": "xyz789"
}

Response:

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