Start a conversation

Updating a Chapter

To update the chapter title and description, use the updateChapter mutation.

Fields

Use the below fields to update a chapter.

Field Description Required
id Chapter ID which you want to update the fields Required
title Chapter title you want to update Optional
description Chapter description Optional
destinationGuide Destination Guide ID where you want to place your chapter. Optional

Example

Use the fetch KB Guides information to fetch and identify the chapter ID you want to update.

To update the chapter title from “Qualities of AI” to “Qualities of AI according to Experts” of the chapter (ID: 156), use the updateChapter mutation.

GraphQL Example

mutation {
  updateChapter(updateChapterInput: {id: "chapter:156", title: "QUALITIES OF AI ACCORDING TO EXPERTS"}) {
    errors {
      __typename
      ... on PermissionDeniedError {
        fields
        message
      }
      ... on UnsupportedConversationStyleError {
        fields
        message
      }
      ... on GuideNotEnabledError {
        fields
        message
      }
      ... on InvalidGuideError {
        fields
        message
      }
      ... on InvalidChapterError {
        fields
        message
      }
      ... on GreaterThanMaxValueError {
        fields
        message
      }
    }
  }
}

GraphQL Response

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

  2. Posted
  3. Updated

Comments