Start a conversation

Creating a Chapter

To create a chapter under a guide, use the createChapter mutation.

Note: You can add up to 500 guides, chapters, and articles. Contact Support to update the limit.

Fields

Use the below fields to create a chapter.

Field Description Required
guideId ID of the guide where you want to create a chapter Required
title Title of the chapter Required
description Description of the chapter Optional
beforeContent Content ID or Chapter ID to place the current chapter before it Optional

Example

To create the “Qualities of AI” chapter under the “Artificial Intelligence” guide (ID: 598), use the createChapter mutation.

mutation {
  createChapter(chapterInput: {guideId: "guide:598", title: "Qualities of AI", description: "AI refer to machines that respond to stimulation consistent with traditional responses from humans"}) {
    errors {
      __typename
      ... on PermissionDeniedError {
        fields
        message
      }
      ... on UnsupportedConversationStyleError {
        fields
        message
      }
      ... on GuideNotEnabledError {
        fields
        message
      }
      ... on InvalidGuideError {
        fields
        message
      }
      ... on GreaterThanMaxValueError {
        fields
        message
      }
      ... on InvalidContentError {
        fields
        message
      }
      ... on InvalidChapterTitle {
        fields
        message
      }
      ... on MaximumEntriesAdded {
        fields
        message
      }
    }
  }
}

GraphQL response:

{
  "data": {
    "createChapter": {
      "errors": null
    }
  }
}
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. ATLAS

  2. Posted
  3. Updated

Comments