> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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`



**mutation** `createCourse(input: CreateCourseInput!): CreateCoursePayload`

## Arguments

**`input`**: `CreateCourseInput!` (required)

Parameters for CreateCourse

## Returns

`CreateCoursePayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`collection`**: `SpacesCollection`

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.

---

**`collectionNewlyCreated`**: `Boolean`

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.

---

**`course`**: `Course`

---

**`errors`**: `[String!]!`

## Examples

```graphql Mutation
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
  }
}
```

```json Variables
{
  "input": {
    "title": "string"
  }
}
```

```json Response
{
  "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"
      ]
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.