mutation CreateCourse($input: CreateCourseInput!) {
createCourse(input: $input) {
clientMutationId
collection {
avatarUrls
createdAt
description
explorable
galleryGroups {
canDelete
galleryPage
galleryType
id
isEnabled
label
}
id
}
collectionNewlyCreated
course {
avatarDarkModeUrl
avatarUrl
coursework {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
}
createdAt
descriptionHtml
descriptionText
}
errors
}
}{
"input": {
"title": "string"
}
}{
"data": {
"createCourse": {
"clientMutationId": "string",
"collection": {
"avatarUrls": [
"string"
],
"createdAt": "value",
"description": "string",
"explorable": true,
"galleryGroups": [
{
"canDelete": true,
"galleryPage": "DISCOVERY",
"galleryType": "BUNDLES",
"id": "id",
"isEnabled": true,
"label": "string"
}
],
"id": "id"
},
"collectionNewlyCreated": true,
"course": {
"avatarDarkModeUrl": "string",
"avatarUrl": "string",
"coursework": {
"edges": [
{
"__typename": "CourseworkEdge"
}
],
"nodes": [
{
"__typename": "Coursework"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"createdAt": "value",
"descriptionHtml": "string",
"descriptionText": "string"
},
"errors": [
"string"
]
}
}
}createCourse
Create a course in the Network. It starts private, visible only to the Host until configured. Format is a self-paced CONTENT course (the default) or a scheduled COHORT course.
Required scope: host:write:network_spaces
createCourse(input: CreateCourseInput!): CreateCoursePayloadArguments
Parameters for CreateCourse
Returns
A unique identifier for the client performing the mutation.
The collection resolved or created for the course. Reported whenever Collection resolution succeeded, even if course creation then failed — the Collection can survive that failure, so check this to see whether one was left behind. Null only when no Collection was resolved at all.
True when this call created the collection rather than placing the course in an existing one. Reported alongside collection under the same conditions, including when course creation then failed.
mutation CreateCourse($input: CreateCourseInput!) {
createCourse(input: $input) {
clientMutationId
collection {
avatarUrls
createdAt
description
explorable
galleryGroups {
canDelete
galleryPage
galleryType
id
isEnabled
label
}
id
}
collectionNewlyCreated
course {
avatarDarkModeUrl
avatarUrl
coursework {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
}
createdAt
descriptionHtml
descriptionText
}
errors
}
}{
"input": {
"title": "string"
}
}{
"data": {
"createCourse": {
"clientMutationId": "string",
"collection": {
"avatarUrls": [
"string"
],
"createdAt": "value",
"description": "string",
"explorable": true,
"galleryGroups": [
{
"canDelete": true,
"galleryPage": "DISCOVERY",
"galleryType": "BUNDLES",
"id": "id",
"isEnabled": true,
"label": "string"
}
],
"id": "id"
},
"collectionNewlyCreated": true,
"course": {
"avatarDarkModeUrl": "string",
"avatarUrl": "string",
"coursework": {
"edges": [
{
"__typename": "CourseworkEdge"
}
],
"nodes": [
{
"__typename": "Coursework"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"createdAt": "value",
"descriptionHtml": "string",
"descriptionText": "string"
},
"errors": [
"string"
]
}
}
}