{
  "openapi": "3.0.0",
  "info": {
    "title": "Knowledge Content Manager APIs",
    "version": "",
    "description": "### Overview\nThe Knowledge Content Manager API provides comprehensive capabilities for importing, validating, and managing knowledge content within the eGain platform. This API enables organizations to efficiently bulk-import content from external sources, validate content before import, and monitor import operations in real-time.\n\n### Key Features\n- **Knowledge Authoring**: Create and edit articles, folders, and topics; check out, save, and publish articles\n- **Topic and folder structure**: Organize content in folder hierarchies and topics\n- **Bulk Content Import**: Import large volumes of content from Amazon S3 buckets\n- **Content Validation**: Pre-import validation to ensure content quality and compliance\n- **Job Management**: Track and manage import operations with detailed status monitoring\n- **Scheduling**: Schedule imports for off-peak hours to minimize system impact\n- **Real-time Monitoring**: Monitor import progress and access detailed logs\n\n### Use Cases\n- Programmatic edit and publish: check out an article, save changes, and publish through API calls\n- Knowledge structure authoring: build folder trees, topics, and article placement\n- Migrating content from legacy knowledge management systems\n- Regular content updates from external content providers\n- Content validation before production deployment\n\n### License Requirements\nLogged in user must have Knowledge + AI license.\n\n### Support\nFor technical support and questions, contact the eGain support team.\n"
  },
  "servers": [
    {
      "url": "https://api.egain.cloud/knowledge/contentmgr/v4",
      "description": "Production Server"
    }
  ],
  "tags": [
    {
      "name": "Content Import",
      "description": "Content import and validation operations for bulk knowledge content management.\n\nThese APIs enable you to:\n- Import content from Data Sources\n- Validate content structure and format before import\n- Add custom hooks before or after validation\n- Monitor import progress and access detailed logs\n- Schedule imports for optimal timing\n- Cancel ongoing operations when needed\n\n**Supported Data Sources:**\n- Amazon S3 buckets\n- SFTP Servers\n\n\n**Supported Content Formats:**\n- Content needs to be in this format: [Guide to Data Import Format](https://apidev.egain.com/developer-portal/guides/ingestion/data-import-format-guide/)\n"
    },
    {
      "name": "Articles",
      "description": "Article authoring operations for viewing, creating, and managing knowledge articles.\n"
    },
    {
      "name": "Folders",
      "description": "Folder management operations for creating, viewing, editing, and deleting knowledge folders.\n"
    },
    {
      "name": "Topics",
      "description": "Topic management operations for creating, viewing, editing, and deleting knowledge topics.\n"
    },
    {
      "name": "Prompt",
      "description": "Prompt template read operations for knowledge AI features.\n"
    }
  ],
  "paths": {
    "/topics": {
      "post": {
        "summary": "Create Topic",
        "operationId": "createTopic",
        "tags": [
          "Topics"
        ],
        "description": "# Overview\nThis API creates a new topic either at the top level of a department or under a given parent topic.\nThe topic is created for all enabled knowledge base languages, so no language input is required.\n\nTopics can be created manually with this API, or generated automatically from the Knowledge Console\nfolder structure (\"Topics From Folders\"); see the `generatedFromFolderId` attribute.\n\n## Permissions\n* The user must have either the `Author` or `Knowledge Base Manager` role, or a custom role with the \n`Create` action on the `Topic` resource.\n* The user sending the request must be from the same or shared department as the parent topic \nor department provided in the request body.\n\n## Validation\n* The `parent` and `department` request body properties are mutually exclusive and must not be provided\ntogether. Supplying both is rejected with `400`.\n\n## Preconditions\n* The parent topic must not be an auto-generated topic (\"Topics From Folders\"). Such a request is\nschema-valid but cannot be processed, and is rejected with `422`.\n\n## Conflicts\n* The topic name must be unique among topics of the same language under the same parent topic,\nor, for a top-level topic, among the department's top-level topics. The topic is created in every\nenabled knowledge base language, so a name already used by such a sibling in any of those\nlanguages is rejected with `409`.\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.manage"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/contentType"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/CreateTopicRequest"
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "location": {
                "description": "Self link of the created topic",
                "schema": {
                  "type": "string",
                  "example": "/knowledge/contentmgr/v4/topics/KB-2270"
                }
              },
              "ETag": {
                "$ref": "#/components/headers/eTag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "409": {
            "$ref": "#/components/responses/409_duplicate_name"
          },
          "422": {
            "$ref": "#/components/responses/422_unprocessable_content"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      },
      "get": {
        "summary": "Get Topics",
        "operationId": "getTopics",
        "tags": [
          "Topics"
        ],
        "description": "# Overview\nThis API retrieves topics. By default only top-level topics are returned; use `$level` to retrieve deeper levels \nof the topic hierarchy.\n\nTopics may be created manually or generated automatically from the Knowledge Console folder structure\n(\"Topics From Folders\"). Use `filter[type]` to fetch only one kind.\n\n## Permissions\n* The user must have either the `Author` or `Knowledge Base Manager` role, or a custom role with the `View` action\non the `Topic` resource.\n* The user sending the request must be from the same or shared department as the requested `portalId`,\n`departmentId`, `parentId` OR `articleId`.\n\nTopics the user is not allowed to view are omitted from the response.\n\n## Validation\n* **Exactly one** of the following query parameters must be provided: `portalId`, `departmentId`,\n`parentId` OR `articleId`. They are mutually exclusive — providing none, or more than one, is\nrejected with `400`.\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.read"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "$lang",
            "in": "query",
            "required": true,
            "description": "The knowledge base language in which the topics are being retrieved. Must be one of the enabled Knowledge Base languages.",
            "schema": {
              "$ref": "#/components/schemas/KnowledgeBaseLanguageCode"
            }
          },
          {
            "$ref": "#/components/parameters/portalId"
          },
          {
            "$ref": "#/components/parameters/departmentId"
          },
          {
            "$ref": "#/components/parameters/parentId"
          },
          {
            "$ref": "#/components/parameters/articleId"
          },
          {
            "$ref": "#/components/parameters/filterType"
          },
          {
            "$ref": "#/components/parameters/topicAdditionalAttributes"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          },
          {
            "$ref": "#/components/parameters/accept"
          },
          {
            "$ref": "#/components/parameters/pagenum"
          },
          {
            "$ref": "#/components/parameters/pagesize"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/levelParam"
          },
          {
            "$ref": "#/components/parameters/sortParam"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/GetTopicsResponse"
          },
          "204": {
            "description": "No content"
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/topics/{topicIDs}": {
      "patch": {
        "summary": "Edit Topic",
        "operationId": "editTopic",
        "tags": [
          "Topics"
        ],
        "description": "# Overview\nThis API edits a single topic.\n\nFor auto-generated topics (\"Topics From Folders\"), you may only edit `translateContent`, `imageUrl`, and\n`articleForTopicHomeContent` (and the top/bottom order via the Edit Article Order API). The set of articles in\nsuch a topic mirrors its source folder and **cannot** be changed with `links`/`unlinks`; edit the source\nfolder instead. A request that attempts to change any other attribute of an auto-generated topic is\nschema-valid but cannot be processed, and is rejected with `422`.\n\n## Permissions\n* The user must have either the `Author` or `Knowledge Base Manager` role, or a custom role with the `Edit` \naction on the `Topic` resource.\n* The user sending the request must be from the same or shared department as the topic.\n\n## Conflicts\n* The `If-Match` request header must contain the ETag value from a prior GET, POST or PATCH response for the same topic.\nThe server rejects the request with `412` if the resource has changed since that ETag was issued.\n* The topic name must be unique among topics of the same language under the same parent topic, or, for a\ntop-level topic, among the department's top-level topics. Renaming the topic in the `$lang` language,\nincluding translating its name, to a name already used by such a sibling in that language is rejected\nwith `409`. The same name in a different language is not a conflict.\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.manage"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/contentType"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          },
          {
            "$ref": "#/components/parameters/topicIdSinglePath"
          },
          {
            "$ref": "#/components/parameters/ifMatchHeader"
          },
          {
            "name": "$lang",
            "in": "query",
            "required": true,
            "description": "The knowledge base language in which the topic is being edited. Must be one of the enabled Knowledge Base languages.",
            "schema": {
              "$ref": "#/components/schemas/KnowledgeBaseLanguageCode"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/EditTopicRequest"
        },
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/eTag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404_common_not_found"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "409": {
            "$ref": "#/components/responses/409_duplicate_name"
          },
          "412": {
            "$ref": "#/components/responses/412_precondition_failed"
          },
          "422": {
            "$ref": "#/components/responses/422_unprocessable_content"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      },
      "get": {
        "summary": "Get Topics By IDs",
        "operationId": "getTopicsByIds",
        "tags": [
          "Topics"
        ],
        "description": "# Overview\nThis GET API service allows users to read one or more topics.\nAll topic IDs provided in the request must belong to the same department.\n\n## Permissions\n* The user must have either the `Author` or `Knowledge Base Manager` role, or a custom role with the `View` \naction on the `Topic` resource.\n* The user sending the request must be from the same or shared department as the requested topics.\n\nIf the user is not allowed to view any requested topic, the entire request is rejected (`403 Forbidden`).\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.read"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          },
          {
            "$ref": "#/components/parameters/accept"
          },
          {
            "name": "$lang",
            "in": "query",
            "required": true,
            "description": "The knowledge base language in which the topics are being retrieved. Must be one of the enabled Knowledge Base languages.",
            "schema": {
              "$ref": "#/components/schemas/KnowledgeBaseLanguageCode"
            }
          },
          {
            "$ref": "#/components/parameters/topicIdsInPath"
          },
          {
            "$ref": "#/components/parameters/topicAdditionalAttributes"
          },
          {
            "$ref": "#/components/parameters/levelParam"
          },
          {
            "$ref": "#/components/parameters/sortParam"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/pagenum"
          },
          {
            "$ref": "#/components/parameters/pagesize"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/GetTopicsByIdsResponse"
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404_common_not_found"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      },
      "delete": {
        "summary": "Delete Topics",
        "operationId": "deleteTopics",
        "tags": [
          "Topics"
        ],
        "description": "# Overview\nThis DELETE API allows user to delete one or more topics.\nAll topic IDs provided in the request must belong to the same department.\nThe portal and precondition rules below (`deleteIfUsedInPortal`, `deleteSubtopics`) are enforced independently\nof the user's roles and actions.\n\n## Permissions\n* The user must have either the `Author` or `Knowledge Base Manager` role, or a custom role with the `Delete` \naction on the `Topic` resource.\n* The user sending the request must be from the same or shared department as the requested topics.\n\nIf the user is not allowed to delete any requested topic, the entire request is rejected (`403 Forbidden`).\n\n## Preconditions\nEach of the following is a schema-valid request that cannot be processed, and is rejected with `422`.\n* The topics being deleted must not be auto-generated topics (\"Topics From Folders\"). There is no override.\n* If any of the specified topics is used in a portal, provide `deleteIfUsedInPortal=true` to proceed.\n* A topic cannot be deleted if it is the last remaining topic in a portal. Because a request may specify\nseveral topics, and `deleteSubtopics=true` may remove more, this is evaluated against the resulting state:\nthe request is rejected if it would leave any portal with no topics. There is no override —\n`deleteIfUsedInPortal=true` does **not** bypass this.\n* If any of the specified topics contains sub-topics, provide `deleteSubtopics=true` to delete the sub-topics as well.\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.manage"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/topicIdsInPath"
          },
          {
            "$ref": "#/components/parameters/deleteIfUsedInPortal"
          },
          {
            "$ref": "#/components/parameters/deleteSubtopics"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404_common_not_found"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "422": {
            "$ref": "#/components/responses/422_unprocessable_content"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/topics/{topicIDs}/articleorder": {
      "get": {
        "summary": "Get Article Order",
        "operationId": "getArticleOrder",
        "tags": [
          "Topics"
        ],
        "description": "# Overview\nThis API retrieves the \"top\" and \"bottom\" order of articles in a specified topic. It returns two ordered\nlists of articles: those pinned to the top of the topic's list and those pinned to the bottom.\n\nOnly pinned articles are returned. The topic's other articles are not part of this response — they are\ndisplayed between the two pinned lists, in unspecified order, when the topic's articles are listed in portals.\n\nA list with nothing pinned is omitted from the response. If neither list has pinned articles, the API\nreturns `204 No Content`.\n\nThe response carries the topic's `ETag`. A topic and its article order share a single ETag, so this value\ncan be supplied as `If-Match` when subsequently updating either the topic or its article order.\n\n## Permissions\n* The user must have either the `Author` or `Knowledge Base Manager` role, or a custom role with the `View` \naction on the `Topic` resource.\n* The user sending the request must be from the same or shared department as the topic.\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.read"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          },
          {
            "$ref": "#/components/parameters/accept"
          },
          {
            "$ref": "#/components/parameters/topicIdSinglePath"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ArticleOrderResponse"
          },
          "204": {
            "description": "No content. No articles are pinned to either list. The `ETag` response header is still returned, so it can be supplied as `If-Match` when needed.",
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/eTag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404_common_not_found"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      },
      "patch": {
        "summary": "Edit Article Order",
        "operationId": "editArticleOrder",
        "tags": [
          "Topics"
        ],
        "description": "# Overview\nThis API sets the order of articles in a topic by pinning articles to the top or the bottom of the topic's\nlist. It does not add or remove article associations; it only rearranges existing ones. When the topic's articles\nare listed in portals, articles in neither list are displayed between the two pinned lists, in unspecified order.\n\nEach list is replaced in full. Supply the complete desired list, in the order the articles should appear —\nthe first entry in the array is displayed first.\n\n* Omit `topArticlesList` or `bottomArticlesList` to leave that list unchanged.\n* Supply an empty array to clear that list.\n\nArticle order can be edited for both manual and auto-generated (\"Topics From Folders\") topics.\n\n## Permissions\n* The user must have either the `Author` or `Knowledge Base Manager` role, or a custom role with the `Edit` \naction on the `Topic` resource.\n* The user sending the request must be from the same or shared department as the topic.\n\n## Validation\n* The same article ID must not appear in both `topArticlesList` and `bottomArticlesList`. An article can be\npinned to the top or to the bottom, not both. Supplying the same ID in both lists is rejected with `400`.\n* Within a single list, each article ID must appear at most once.\n* A maximum of 25 articles can be pinned to each list. Supplying more is rejected with `400`.\n* The request body must contain at least one of `topArticlesList` or `bottomArticlesList`. A body\nwith neither would change nothing and is rejected with `400`.\n\n## Preconditions\n* All articles supplied in the request body must already be associated with the specified topic. Such a\nrequest is schema-valid but cannot be processed, and is rejected with `422`.\n\n## Conflicts\nA topic and its article order share a single `ETag`, so an ETag issued for either is valid for both.\nThe `If-Match` request header must contain the ETag value from a prior GET, POST or PATCH response for\nthe same topic. The server rejects the request with `412` if the topic has changed since that ETag was\nissued.\n\nA successful request advances the shared ETag and updates the topic's `lastModified`, so any ETag held\nelsewhere for the same topic — including one obtained for a metadata edit — becomes stale.\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.manage"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/contentType"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          },
          {
            "$ref": "#/components/parameters/topicIdSinglePath"
          },
          {
            "$ref": "#/components/parameters/ifMatchHeader"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/EditArticleOrderRequest"
        },
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/eTag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404_common_not_found"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "412": {
            "$ref": "#/components/responses/412_precondition_failed"
          },
          "422": {
            "$ref": "#/components/responses/422_unprocessable_content"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/prompts/prompttemplates": {
      "get": {
        "summary": "Get Prompt Templates",
        "description": "Retrieve prompt templates filtered by department and language.",
        "operationId": "getPromptTemplates",
        "tags": [
          "Prompt"
        ],
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.read"
            ]
          },
          {
            "oAuthClient": [
              "https://api.egain.cloud/auth/.default"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          },
          {
            "name": "department",
            "in": "query",
            "description": "Name of the department. Must be a valid department name.",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[^~`!#$%\\^*()=\\[\\],;'\"|<>\\/?+{}]+$"
            },
            "example": "Service"
          },
          {
            "name": "languageCode",
            "in": "query",
            "description": "The language used while writing the prompt templates.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/LegacyKBLanguageCodes"
            },
            "example": "en-US"
          },
          {
            "name": "name",
            "in": "query",
            "description": "Fetch only templates with this exact name.",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\w\\W]*$"
            },
            "example": "Generate email"
          },
          {
            "name": "useFor",
            "in": "query",
            "description": "Filter prompt templates based on console.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "advisor",
                "knowledge",
                "knowledge-intelligence",
                "knowledge-orchestration",
                "custom"
              ]
            },
            "example": "knowledge"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with list of prompt templates",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptTemplates"
                }
              }
            }
          },
          "204": {
            "$ref": "#/components/responses/NoContent"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "406": {
            "$ref": "#/components/responses/responses-NotAcceptable"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/prompts/prompttemplates/{promptID}": {
      "get": {
        "summary": "Get Prompt Template By ID",
        "description": "Retrieve a prompt template filtered by department and language.",
        "operationId": "getPromptTemplateById",
        "tags": [
          "Prompt"
        ],
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.read"
            ]
          },
          {
            "oAuthClient": [
              "https://api.egain.cloud/auth/.default"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          },
          {
            "name": "department",
            "in": "query",
            "description": "Name of the department. Must be a valid department name.",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[^~`!#$%\\^*()=\\[\\],;'\"|<>\\/?+{}]+$"
            },
            "example": "Service"
          },
          {
            "name": "languageCode",
            "in": "query",
            "description": "The language used while writing the prompt templates.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/LegacyKBLanguageCodes"
            },
            "example": "en-US"
          },
          {
            "name": "promptID",
            "in": "path",
            "description": "The promptID of the prompt template you want to fetch details for.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
              "minLength": 7,
              "maxLength": 20,
              "example": "PROD-4582"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with list of prompt templates",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptTemplate"
                }
              }
            }
          },
          "204": {
            "$ref": "#/components/responses/NoContent"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "406": {
            "$ref": "#/components/responses/responses-NotAcceptable"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/folders": {
      "post": {
        "summary": "Create Folder",
        "operationId": "createFolder",
        "tags": [
          "Folders"
        ],
        "description": "# Overview\nThis API creates a new folder either at root or under a given parent folder.\nThe folder is created for all knowledge base languages, so no language input is required.\n\n## Permissions\nThe user must have either the `Author` or `Knowledge Base Manager` role, or a custom role \nwith `Create Folder` action. Additionally:\n* **'Create Folder'** permission on the parent folder is required to create a folder under that parent.\n* **'Create Folder'** permission on the **Shared** folder of the provided department is required to create a root-level folder.\n\n## Conflicts\n* The folder name must be unique among folders of the same language under the same parent folder,\nor, for a root-level folder, among the department's root-level folders. The folder is created in\nevery knowledge base language, so a name already used by such a sibling in any of those languages\nis rejected with `409`.\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.manage"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/contentType"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/CreateFolderRequest"
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "location": {
                "description": "Self link of the created folder",
                "schema": {
                  "type": "string",
                  "example": "/knowledge/contentmgr/v4/folders/409600000154385"
                }
              },
              "ETag": {
                "$ref": "#/components/headers/eTag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "409": {
            "$ref": "#/components/responses/409_duplicate_name"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      },
      "get": {
        "summary": "Get Folders",
        "operationId": "getFolders",
        "tags": [
          "Folders"
        ],
        "description": "# Overview\nThis API allows user to get the folders of a department. By default only root-level folders are returned; \nuse `$level` to retrieve deeper levels of the folder hierarchy.\n\n## Permissions\nThe user must have either the `Author` or `Knowledge Base Manager` role, or a custom role \nwith `View Folder` action. Additionally:\n* **'View Folder'** permission is required to view folders. The response excludes folders\nwithout the appropriate permission.\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.read"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "$lang",
            "in": "query",
            "required": true,
            "description": "The knowledge base language in which the folders are being retrieved.  Must be one of the enabled Knowledge Base languages.",
            "schema": {
              "$ref": "#/components/schemas/KnowledgeBaseLanguageCode"
            }
          },
          {
            "$ref": "#/components/parameters/mandatoryDepartmentId"
          },
          {
            "$ref": "#/components/parameters/folderAdditionalAttributes"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          },
          {
            "$ref": "#/components/parameters/accept"
          },
          {
            "$ref": "#/components/parameters/pagenum"
          },
          {
            "$ref": "#/components/parameters/pagesize"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/parameters-levelParam"
          },
          {
            "$ref": "#/components/parameters/sortParam"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/GetFoldersResponse"
          },
          "204": {
            "description": "No content. There are no folders available to return for the requested department at the requested `$level`."
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/folders/{folderIDs}": {
      "patch": {
        "summary": "Edit Folder",
        "operationId": "editFolder",
        "tags": [
          "Folders"
        ],
        "description": "# Overview\nThis API edits a single folder.\n\n## Permissions\nThe user must have either the `Author` or `Knowledge Base Manager` role, or a custom role \nwith `Edit Folder` action. Additionally:\n* **'Edit Folder'** permission on the specified folder is required.\n\n## Conflicts\n* The `If-Match` request header must contain the ETag value from a prior GET, POST or PATCH response for the same folder.\nThe server rejects the request with `412` if the resource has changed since that ETag was issued.\n* The folder name must be unique among folders of the same language under the same parent folder, or, for a\nroot-level folder, among the department's root-level folders. Renaming the folder in the `$lang` language,\nincluding translating its name, to a name already used by such a sibling in that language is rejected\nwith `409`. The same name in a different language is not a conflict.\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.manage"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/contentType"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          },
          {
            "$ref": "#/components/parameters/folderIdInPath"
          },
          {
            "$ref": "#/components/parameters/ifMatchHeader"
          },
          {
            "name": "$lang",
            "in": "query",
            "required": true,
            "description": "The knowledge base language in which the folder is being edited. Must be one of the enabled Knowledge Base languages.",
            "schema": {
              "$ref": "#/components/schemas/KnowledgeBaseLanguageCode"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/EditFolderRequest"
        },
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/eTag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404_common_not_found"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "409": {
            "$ref": "#/components/responses/409_duplicate_name"
          },
          "412": {
            "$ref": "#/components/responses/412_precondition_failed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      },
      "get": {
        "summary": "Get Folders By IDs",
        "operationId": "getFoldersByIds",
        "tags": [
          "Folders"
        ],
        "description": "# Overview\nThis GET API service allows users to read one or more folders. \nAll folder IDs provided in the request must belong to the same department.\n\n## Permissions\nThe user must have either the `Author` or `Knowledge Base Manager` role, or a custom role \nwith `View Folder` action. Additionally:\n* **'View Folder'** permission on each requested folder is required.\n\nIf any requested folder fails the permission check, the entire request is rejected (`403 Forbidden`).\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.read"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          },
          {
            "$ref": "#/components/parameters/accept"
          },
          {
            "name": "$lang",
            "in": "query",
            "required": true,
            "description": "The knowledge base language in which the folders are being retrieved.  Must be one of the enabled Knowledge Base languages.",
            "schema": {
              "$ref": "#/components/schemas/KnowledgeBaseLanguageCode"
            }
          },
          {
            "$ref": "#/components/parameters/folderIdsInPath"
          },
          {
            "$ref": "#/components/parameters/folderAdditionalAttributes"
          },
          {
            "$ref": "#/components/parameters/parameters-levelParam"
          },
          {
            "$ref": "#/components/parameters/sortParam"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/pagenum"
          },
          {
            "$ref": "#/components/parameters/pagesize"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/GetFoldersByIdsResponse"
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404_common_not_found"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      },
      "delete": {
        "summary": "Delete Folders",
        "operationId": "deleteFolders",
        "tags": [
          "Folders"
        ],
        "description": "# Overview\nThis DELETE API allows user to delete one or more folders.\nAll folder IDs provided in the request must belong to the same department.\n\n## Permissions\nThe user must have either the `Author` or `Knowledge Base Manager` role, or a custom role \nwith `Delete Folder` action. Additionally:\n* **'Delete Folder'** permission on each folder is required to delete folders.\n\nIf any requested folder fails the permission check, the entire request is rejected (`403 Forbidden`).\n\n## Preconditions\nEach of the following is a schema-valid request that cannot be processed, and is rejected with `422`.\n* If any of the specified folders is referenced as a topic in a portal, provide `deleteIfUsedInPortal=true`\nto proceed.\n* A folder cannot be deleted while it contains articles. Provide `deleteUnreferencedArticles=true` to delete \nthe unreferenced articles in the folder; articles that are referenced elsewhere cannot be deleted, and a folder \nthat still contains such articles is preserved.\n\n## Status\nDeletion is processed asynchronously. The `202` response returns a `Location` header whose URL\n(ending in the job ID) can be polled via\n[Get Async Job Status](../apis/v4/core/infomgr/api-bundled/jobs/getasyncjobstatus)\nto check the outcome.\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.manage"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/folderIdsInPath"
          },
          {
            "$ref": "#/components/parameters/parameters-deleteIfUsedInPortal"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          },
          {
            "$ref": "#/components/parameters/deleteUnreferencedArticles"
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. The deletion runs asynchronously; poll the URL in the `Location` header via [Get Async Job Status](../apis/v4/core/infomgr/api-bundled/jobs/getasyncjobstatus) to check the job's outcome.",
            "headers": {
              "location": {
                "description": "URL of [Get Async Job Status](../apis/v4/core/infomgr/api-bundled/jobs/getasyncjobstatus) (`/core/infomgr/v4/async/job/{jobID}`) for this deletion. The final path segment is the job ID; poll this URL to check the job's outcome.",
                "schema": {
                  "type": "string",
                  "example": "/core/infomgr/v4/async/job/2F8ABBAC-783B-43CC-8A30-371D9C461656"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404_common_not_found"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "422": {
            "$ref": "#/components/responses/422_unprocessable_content"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/import/content/{job_id}/pause": {
      "post": {
        "summary": "Pause Job",
        "description": "# Pause Import Job\n\nTemporarily pauses a job that is currently **In Progress**. The job's state is saved and can be resumed within one week, allowing system resources to be freed without losing progress. Only **import jobs** can be paused, validations cannot be paused.\n\n## Pausing Behavior\n- **In Progress Jobs**: The job will finish its current task and remain in the **In Progress** state with a paused sub-status.\n- **Other States**: Returns an error if the job is not in an **In Progress** state.\n",
        "operationId": "pauseImportJob",
        "x-hideReplay": true,
        "tags": [
          "Content Import"
        ],
        "security": [
          {
            "oAuthClient": [
              "https://api.egain.cloud/auth/.default"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/jobId"
          }
        ],
        "responses": {
          "202": {
            "description": "The request to paused the job has been accepted and is being processed. Monitor the job's status using the URL provided in the `location` header.",
            "headers": {
              "location": {
                "schema": {
                  "type": "string",
                  "example": "/knowledge/contentmgr/v4/import/content/7A84B-Y42R-J1B-5D-14VD/status"
                },
                "description": "The URL to check the status of the import job."
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/PauseConflict"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/import/content/{job_id}/resume": {
      "post": {
        "summary": "Resume Job",
        "description": "# Resume Import Job\n\nResumes a job that is currently in a **In-Progress** state with paused sub-status. Processing will continue from where it left off.\n\n## Resuming Behavior\n- **Paused Jobs**: The job sub-status will transition to no sub-status and continue processing.\n- **Other States**: Returns an error if the job cannot be resumed.\n",
        "operationId": "resumeImportJob",
        "x-hideReplay": true,
        "tags": [
          "Content Import"
        ],
        "security": [
          {
            "oAuthClient": [
              "https://api.egain.cloud/auth/.default"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/jobId"
          }
        ],
        "responses": {
          "202": {
            "description": "The request to resume the job has been accepted and is being processed. Monitor the job's status using the URL provided in the `location` header.",
            "headers": {
              "location": {
                "schema": {
                  "type": "string",
                  "example": "/knowledge/contentmgr/v4/import/content/7A84B-Y42R-J1B-5D-14VD/status"
                },
                "description": "The URL to check the status of the import job."
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/ResumeConflict"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/import/content": {
      "post": {
        "description": "# Import Content\n\n## Overview\nThis API initiates a bulk content import operation from Data Sources. It creates an asynchronous import job that processes content in the background, allowing you to import large volumes of content without blocking your application.\n\n## Pre-requisties\n1. Content in Data Source needs to be in this format: [Guide to Data Import Format](https://apidev.egain.com/developer-portal/guides/ingestion/data-import-format-guide/)\n\n## How It Works\n1. **Job Creation**: The API creates an import job and returns a unique job ID\n   * **Note:** Only 1 Job is ran at a time, with a maximum 3 jobs allowed to be queued up\n2. **Content Processing**: Content is processed asynchronously in the background\n   * **Note:** Jobs will have a dynamic maximum runtime depending on system resources\n3. **Status Monitoring**: Use the job ID to monitor progress via the Status API\n4. **Completion**: Job completes when all content is processed or errors occur\n\n**Note:** After a successful import, please allow for a brief delay before the content is fully available for use. The system's search service synchronizes all new and updated content every 30 minutes.\n\n## Imported Articles State\nA successfully completed import job does not guarantee that imported articles are published. Imported articles are placed into the workflow assigned to their destination folder — either a workflow configured explicitly on the folder, or the department's default workflow when none is configured at the folder level.\n- If that workflow includes review stages, imported articles are left in the `draft` stage rather than `published`.\n   * **Note:** The ingestion service account does not have permission to progress articles through workflow review stages. Articles must be advanced to `published` by a user authorized to do so by the article's workflow, for example using the [Edit Article](../apis/v4/knowledge/contentmgr/api-bundled/articles/editarticle) API with `operation=publish`.\n- If the applicable workflow (explicit or default) has no review stages, imported articles are published automatically.\n\nThis is expected behavior driven by the destination folder's (or department's) workflow configuration, not an ingestion error. If imported content unexpectedly remains in draft state, review the workflow assigned to the destination folder.\n\n## Supported Operations\n- **Import**: Add new content to the knowledge base\n- **Reimport**: Modify existing content \n   * **Note:** The recommendation is to only include the updated content in the package for Reimport jobs. Otherwise duplicate content will be uploaded again as a new version, adding to job run time.\n\n## Data Source Types\n- AWS S3 bucket\n- Shared file path\n\n## Best Practices\n- **Scheduling**: Use scheduleTime for off-peak imports to minimize system impact. Please note that jobs can only be scheduled for a maximum of 7 days from the current date and time. \n   * **Note:** Scheduling does not guarantee that job will start at scheduleTime. System will attempt to start job at scheduledTime but if it is unable to due to lack of resource, it will start as soon as resources are available. Jobs scheduled that exceed the stopDate will automatically be cancelled.\n- **Monitoring**: Regularly check job status and logs for any issues\n- **Error Handling**: Review failed items and retry with corrections\n\n## Job Timing Controls\n- **scheduleTime.stopDate**: Defines a specific date time to cease operations regardless of progress (e.g., \"Stop exactly at 5:00 PM\").\n\n## Import Report\nSet `includeReport` to `true` to have the service generate a structured import report when the job concludes. The report summarizes which resources were created, updated, deleted, or failed, and includes the eGain-assigned IDs for each — useful for post-import work that needs to map source paths to the resulting resource IDs. When enabled, the report's location is returned as `reportFolderLocation` on the Get Job Status response. For the report's structure and contents, see the [Ingestion API Overview](https://apidev.egain.com/developer-portal/guides/ingestion/ingestion-overview).\n",
        "summary": "Create Import Job",
        "operationId": "createImportJob",
        "x-hideReplay": true,
        "tags": [
          "Content Import"
        ],
        "security": [
          {
            "oAuthClient": [
              "https://api.egain.cloud/auth/.default"
            ]
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportContent"
              },
              "examples": {
                "Schedule Start and Stop Date to Import S3 content in the Department": {
                  "summary": "Basic S3 import",
                  "description": "Import content from an S3 bucket with scheduled execution",
                  "value": {
                    "dataSource": {
                      "type": "AWS S3 bucket",
                      "path": "s3://mybucket/myfolder/",
                      "region": "us-east-1",
                      "credentials": {
                        "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
                        "secretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
                      }
                    },
                    "operation": "import",
                    "scheduleTime": {
                      "date": "2024-03-01T10:00:00.000Z",
                      "stopDate": "2024-03-05T10:00:00.000Z"
                    }
                  }
                },
                "Schedule Import S3 content in the Department": {
                  "summary": "Basic S3 import",
                  "description": "Import content from an S3 bucket",
                  "value": {
                    "dataSource": {
                      "type": "AWS S3 bucket",
                      "path": "s3://mybucket/myfolder/",
                      "region": "us-east-1",
                      "credentials": {
                        "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
                        "secretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
                      }
                    },
                    "operation": "import",
                    "scheduleTime": {
                      "date": "2024-03-01T10:00:00.000Z"
                    }
                  }
                },
                "Import S3 content in the Department": {
                  "summary": "Basic S3 import",
                  "description": "Import content from an S3 bucket with scheduled execution",
                  "value": {
                    "dataSource": {
                      "type": "AWS S3 bucket",
                      "path": "s3://mybucket/myfolder/",
                      "region": "us-east-1",
                      "credentials": {
                        "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
                        "secretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
                      }
                    },
                    "operation": "import"
                  }
                },
                "Update existing content in the Department from SFTP": {
                  "summary": "Content update operation",
                  "description": "Update existing content with new information",
                  "value": {
                    "dataSource": {
                      "type": "Shared file path",
                      "path": "sftp://server.com/content/updates/"
                    },
                    "operation": "reimport",
                    "scheduleTime": {
                      "date": "2024-03-01T02:00:00.000Z"
                    }
                  }
                },
                "Import S3 content and generate an import report": {
                  "summary": "S3 import with report",
                  "description": "Import content from an S3 bucket and request a structured import report. The report's location is returned as reportFolderLocation on the Get Job Status response.",
                  "value": {
                    "dataSource": {
                      "type": "AWS S3 bucket",
                      "path": "s3://mybucket/myfolder/",
                      "region": "us-east-1",
                      "credentials": {
                        "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
                        "secretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
                      }
                    },
                    "operation": "import",
                    "includeReport": true
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "## Import Job Accepted\n\nThe import job has been successfully created and queued for processing. The job will begin execution according to the specified schedule or immediately if no schedule is provided.\n\n**Next Steps:**\n1. Use the returned job ID to monitor progress via the Status API\n2. Check job logs for any validation warnings or errors\n3. Monitor job completion and review results\n\n**Expected Processing Time:**\n- Small jobs (< 1,000 items): 5-15 minutes\n- Medium jobs (1,000-10,000 items): 15-60 minutes\n- Large jobs (> 10,000 items): 1-4 hours (depending on content complexity)\n",
            "headers": {
              "location": {
                "schema": {
                  "type": "string",
                  "example": "/knowledge/contentmgr/v4/import/content/7A84B875-6F75-4C7B-B137-0632B62DB0BD/status"
                },
                "description": "**Location Header**\n\nThis header contains the URL to check the status of your import job. The job ID (7A84B875-6F75-4C7B-B137-0632B62DB0BD in this example) is your unique identifier for tracking this operation.\n\n**Usage:**\n```bash\nGET /knowledge/contentmgr/v4/import/content/7A84B875-6F75-4C7B-B137-0632B62DB0BD/status\n```\n"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadImportContentRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WSErrorCommon"
                },
                "example": {
                  "code": "409-100",
                  "developerMessage": "A job with the datasource path {0} is already scheduled or executing. Please cancel or stop that job first."
                }
              }
            }
          },
          "412": {
            "$ref": "#/components/responses/412_precondition_failed"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/import/config/hooks": {
      "get": {
        "summary": "Get validation hooks",
        "x-hideReplay": true,
        "operationId": "getValidationHooks",
        "tags": [
          "Content Import"
        ],
        "description": "Retrieve all validation hooks configured for the current environment. Only the current version of each hook is returned.\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/HookTypeParam"
          }
        ],
        "responses": {
          "200": {
            "description": "List of validation hooks.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Hooks"
                },
                "example": {
                  "hooks": [
                    {
                      "hookID": 10050,
                      "name": "Dept-Tag-Validator",
                      "type": "import_post_validation_hook",
                      "fileObject": {
                        "fileID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                        "createdDate": "2024-03-15T10:30:00.000Z",
                        "createdBy": {
                          "id": "500",
                          "userName": "jdoe",
                          "firstName": "John",
                          "lastName": "Doe"
                        },
                        "modifiedDate": "2024-03-20T14:15:00.000Z",
                        "modifiedBy": {
                          "id": "501",
                          "userName": "asmith",
                          "firstName": "Alice",
                          "lastName": "Smith"
                        },
                        "version": {
                          "versionID": 2,
                          "isCurrent": true
                        },
                        "file": {
                          "name": "check_dept_tags_v2.js",
                          "content": "dmFyIGl0ZW0gPSBjb250ZXh0Lml0ZW07",
                          "contentUrl": "https://api.egain.cloud/knowledge/contentmgr/v4/import/config/hooks/10050/version/2"
                        }
                      }
                    },
                    {
                      "hookID": 10051,
                      "name": "Filename-Sanitizer",
                      "type": "import_pre_validation_hook",
                      "fileObject": {
                        "fileID": "9b2c3d4e-5717-4562-b3fc-2c963f66afa6",
                        "createdDate": "2024-03-10T09:00:00.000Z",
                        "createdBy": {
                          "id": "500",
                          "userName": "jdoe",
                          "firstName": "John",
                          "lastName": "Doe"
                        },
                        "modifiedDate": "2024-03-10T09:00:00.000Z",
                        "modifiedBy": {
                          "id": "500",
                          "userName": "jdoe",
                          "firstName": "John",
                          "lastName": "Doe"
                        },
                        "version": {
                          "versionID": 1,
                          "isCurrent": true
                        },
                        "file": {
                          "name": "clean_filenames.js",
                          "content": "ZnVuY3Rpb24gdmFsaWRhdGUuLi4=",
                          "contentUrl": "https://api.egain.cloud/knowledge/contentmgr/v4/import/config/hooks/10051/version/1"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      },
      "post": {
        "summary": "Create validation hook",
        "x-hideReplay": true,
        "operationId": "createValidationHook",
        "tags": [
          "Content Import"
        ],
        "description": "# Create Validation Hook\n\n## Overview\nThis API allows you to create custom JavaScript-based validation hooks that execute during the bulk content ingestion process. Validation hooks enable organizations to enforce specific business rules, verify metadata compliance, and perform complex data integrity checks that go beyond standard system validation.\n\n## Usage Requirements\nTo ensure successful hook creation and execution, please adhere to the following:\n- **Content Encoding**: The `fileObject.file.content` property must be a **Base64 encoded** string of your JavaScript logic.\n- **File Naming**: The filename should use the `.js` extension.\n- **Logic Return**: Your script must return a `result` object containing a boolean `success` property.\n- **Size Limit**: The encoded content must not exceed 1.5MB.\n\n## Hook Types\n- **Pre-Validation Hooks (`import_pre_validation_hook`)**: These execute **before** the standard system validation. They are ideal for enforcing custom business rules, such as ensuring all articles contain specific metadata.\n- **Post-Validation Hooks (`import_post_validation_hook`)**: These execute **after** the standard system validation. They have access to the `validationResults` from the system check, allowing you to block an import based on the severity of errors found.\n\n## Execution Environment\nHooks run in a secure, sandboxed JavaScript environment (ES5/ES6). \n- **Prohibited**: File system access (`fs`), network access (HTTP requests), and module loading (`require`).\n- **Supported**: Standard JavaScript logic, `console.log()` for debugging, and a specialized `helpers` utility library for safe data access.\n\n## Implementation Examples\n\n### Example: Pre-Validation Logic\nThis example demonstrates checking that every article contains a specific metadata field.\n```javascript\n// Initialize result\nvar result = { success: true };\n\n// Verify data exists\nif (helpers.hasField(data, 'articles') && helpers.isNotEmpty(data.articles)) {\n  \n  var invalidArticles = [];\n  \n  for (var i = 0; i < data.articles.length; i++) {\n    var article = data.articles[i];\n    \n    if (!helpers.hasField(article, 'name')) {\n      invalidArticles.push({ index: i, issue: \"Missing name\" });\n      continue;\n    }\n\n    // Custom Rule: Check if 'description' exists in metadata\n    if (!helpers.hasField(article, 'metadata') || \n        !helpers.hasField(article.metadata, 'description') || \n        helpers.isEmpty(article.metadata.description)) {\n          \n      invalidArticles.push({ \n        name: article.name, \n        issue: \"Missing required description metadata\" \n      });\n    }\n  }\n  \n  if (invalidArticles.length > 0) {\n    result = {\n      success: false,\n      error: 'Articles failed custom metadata validation',\n      details: { count: invalidArticles.length, errors: invalidArticles }\n    };\n  }\n}\nresult;\n```\n\n### Example: Post-Validation Logic\nThis example checks the standard validation results. If there are standard errors, it logs them and fails the job explicitly.\n```javascript\nvar result = { success: true };\n\n// Check if standard validation found errors\nif (helpers.hasField(validationResults, 'errors') && validationResults.errors.length > 0) {\n  \n  var errorCount = validationResults.errors.length;\n  console.log('Standard validation found ' + errorCount + ' errors.');\n\n  var errorTypes = {};\n  validationResults.errors.forEach(function(err) {\n    var type = err.type || 'unknown';\n    errorTypes[type] = (errorTypes[type] || 0) + 1;\n  });\n\n  result = {\n    success: false,\n    error: 'Standard validation failed with ' + errorCount + ' errors.',\n    details: {\n      summary: errorTypes,\n      firstError: validationResults.errors[0].message\n    }\n  };\n}\nresult;\n```\n\n## Further Documentation\nFor more detailed context on available objects (`data`, `metadata`, `helpers`) and best practices, refer to the [Validation Hook Guide](https://apidev.egain.com/developer-portal/guides/ingestion/validation-hook-guide/#example-pre-validation-logic).\n",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hook"
              },
              "examples": {
                "Post-Validation Script": {
                  "value": {
                    "type": "import_post_validation_hook",
                    "fileObject": {
                      "file": {
                        "name": "check_dept_tags.js",
                        "content": "dmFyIGl0ZW0gPSBjb250ZXh0Lml0ZW07"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Hook created."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/import/config/hooks/{hookID}/version": {
      "get": {
        "summary": "Get all versions for a validation hook",
        "operationId": "getValidationHookVersions",
        "x-hideReplay": true,
        "tags": [
          "Content Import"
        ],
        "description": "Retrieve a history of all versions uploaded for a specific validation hook.",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/hookID"
          }
        ],
        "responses": {
          "200": {
            "description": "List of hook versions.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileObjects"
                },
                "example": [
                  {
                    "fileID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                    "createdDate": "2024-03-15T10:30:00.000Z",
                    "createdBy": {
                      "id": "500",
                      "userName": "jdoe",
                      "firstName": "John",
                      "lastName": "Doe"
                    },
                    "modifiedDate": "2024-03-20T14:15:00.000Z",
                    "modifiedBy": {
                      "id": "501",
                      "userName": "asmith",
                      "firstName": "Alice",
                      "lastName": "Smith"
                    },
                    "version": {
                      "versionID": 2,
                      "isCurrent": true
                    },
                    "file": {
                      "name": "check_dept_tags_v2.js",
                      "content": "dmFyIGl0ZW0gPSBjb250ZXh0Lml0ZW07",
                      "contentUrl": "https://api.egain.cloud/knowledge/contentmgr/v4/import/config/hooks/10050/version/2"
                    }
                  },
                  {
                    "fileID": "1a2b3c4d-5717-4562-b3fc-2c963f66afa6",
                    "createdDate": "2024-03-15T10:30:00.000Z",
                    "createdBy": {
                      "id": "500",
                      "userName": "jdoe",
                      "firstName": "John",
                      "lastName": "Doe"
                    },
                    "modifiedDate": "2024-03-15T10:30:00.000Z",
                    "modifiedBy": {
                      "id": "500",
                      "userName": "jdoe",
                      "firstName": "John",
                      "lastName": "Doe"
                    },
                    "version": {
                      "versionID": 1,
                      "isCurrent": false
                    },
                    "file": {
                      "name": "check_dept_tags.js",
                      "content": "ZnVuY3Rpb24gb2xkLi4u",
                      "contentUrl": "https://api.egain.cloud/knowledge/contentmgr/v4/import/config/hooks/10050/version/1"
                    }
                  }
                ]
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "post": {
        "summary": "Update validation hook version",
        "x-hideReplay": true,
        "operationId": "createValidationHookVersion",
        "tags": [
          "Content Import"
        ],
        "description": "Upload a new version of the JavaScript logic for an existing hook.",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/hookID"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileObject"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Hook version created."
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/import/config/hooks/{hookID}/version/{versionID}": {
      "get": {
        "summary": "Get validation hook version details",
        "x-hideReplay": true,
        "operationId": "getValidationHookVersion",
        "tags": [
          "Content Import"
        ],
        "description": "Get details and content URL for a specific version of a hook.",
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/hookID"
          },
          {
            "$ref": "#/components/parameters/versionID"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileObject"
                },
                "example": {
                  "fileID": "1a2b3c4d-5717-4562-b3fc-2c963f66afa6",
                  "createdDate": "2024-03-15T10:30:00.000Z",
                  "createdBy": {
                    "id": "500",
                    "userName": "jdoe",
                    "firstName": "John",
                    "lastName": "Doe"
                  },
                  "version": {
                    "versionID": 1,
                    "isCurrent": false
                  },
                  "file": {
                    "name": "check_dept_tags.js",
                    "content": "ZnVuY3Rpb24gb2xkLi4u",
                    "contentUrl": "https://api.egain.cloud/knowledge/contentmgr/v4/import/config/hooks/10050/version/1"
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/import/content/{job_id}/status": {
      "get": {
        "description": "# Get Import Job Status\n\n## Overview\nThis API provides real-time status information for content import and validation operations. Use this endpoint to monitor job progress, check completion status, and access detailed logs and error information.\n\n## Status Values\n- **Scheduled**: Job is queued and waiting for to be attempted at scheduled execution time\n- **In Progress**: Job is actively processing content\n  - If Job status is **In Progress** but no **currentOperation** is returned. Please use query parameter **verbose=true** for more information.\n- **Successful**: Job finished successfully\n- **Failed**: Job encountered errors and could not complete\n- **Cancelled**: Job was manually cancelled by user\n\n## Response Information\n- **Current Status**: Real-time job status\n- **Progress Metrics**: Items processed, total items, completion percentage\n- **Log Files**: Location of detailed operation logs\n- **Error Details**: Specific errors encountered during processing\n- **Timing Information**: Start time, estimated completion, actual completion\n\n## Verbose Response Information\n- **Sub-Status**: Sub-Status of Job status\n- **Status Reason**: Reason for status, reveals information regarding status and sub-status.\n\n## Log File Access\nLog files contain detailed information about:\n- Content processing steps\n- Validation results\n- Error details with context\n\n## Import Report Access\nWhen the import job was created with `includeReport=true`, `reportFolderLocation` points to the generated import report. For the report's structure and contents, see the [Ingestion API Overview](https://apidev.egain.com/developer-portal/guides/ingestion/ingestion-overview).\n",
        "summary": "Get Job Status",
        "operationId": "getImportStatus",
        "x-hideReplay": true,
        "security": [
          {
            "oAuthClient": [
              "https://api.egain.cloud/auth/.default"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/jobId"
          },
          {
            "$ref": "#/components/parameters/verboseJobStatus"
          }
        ],
        "responses": {
          "200": {
            "description": "## Job Status Retrieved Successfully\n\nThe current status and progress information for the specified import or validation job.\n\n**Response Details:**\n- **Status**: Current job state (Scheduled, In Progress, Successful, Failed, Cancelled)\n- **Job Type**: Current job's type (Import or Validation)\n- **Progress**: Number of items processed vs. total items\n- **Logs**: Location of detailed operation logs\n- **Timing**: Start time and estimated completion\n- **Errors**: Any validation or processing errors encountered\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportStatus"
                },
                "examples": {
                  "Scheduled Job with scheduled Stop Time": {
                    "summary": "Scheduled import job with scheduled stop time",
                    "description": "Shows an import job that is currently scheduled and has a scheduled stop time",
                    "value": {
                      "status": "Scheduled",
                      "jobType": "Import",
                      "progress": {
                        "processed": 0,
                        "total": 5000,
                        "percentage": 0
                      },
                      "logFileLocation": "s3://mybucket/ingestion-execution/9B2E4C7A-1D3F-4A82-B5E6-7C8D9E0F1A2B_execution_log.json",
                      "startTime": "2024-03-01T10:00:00.000Z",
                      "estimatedCompletion": "2024-03-01T11:30:00.000Z",
                      "scheduledStopTime": "2024-03-01T14:00:00.000Z",
                      "currentOperation": "Import job in queue to being to start at startTime"
                    }
                  },
                  "Job in Progress": {
                    "summary": "Active import job",
                    "description": "Shows an import job that is currently processing content",
                    "value": {
                      "status": "In Progress",
                      "jobType": "Import",
                      "progress": {
                        "processed": 1250,
                        "total": 5000,
                        "percentage": 25
                      },
                      "logFileLocation": "s3://mybucket/ingestion-execution/9B2E4C7A-1D3F-4A82-B5E6-7C8D9E0F1A2B_execution_log.json",
                      "startTime": "2024-03-01T10:00:00.000Z",
                      "estimatedCompletion": "2024-03-01T11:30:00.000Z",
                      "currentOperation": "Processing content items"
                    }
                  },
                  "Completed Import Job": {
                    "summary": "Successfully completed import job",
                    "description": "Shows a import job that has finished processing",
                    "value": {
                      "status": "Successful",
                      "jobType": "Import",
                      "progress": {
                        "processed": 5000,
                        "total": 5000,
                        "percentage": 100
                      },
                      "logFileLocation": "s3://mybucket/ingestion-execution/9B2E4C7A-1D3F-4A82-B5E6-7C8D9E0F1A2B_execution_log.json",
                      "startTime": "2024-03-01T10:00:00.000Z",
                      "completionTime": "2024-03-01T11:15:00.000Z",
                      "results": {
                        "successful": 4985,
                        "warnings": 10,
                        "errors": 5
                      }
                    }
                  },
                  "Completed Import Job with Report": {
                    "summary": "Successfully completed import job with report",
                    "description": "Shows a completed import job created with includeReport=true, where reportFolderLocation points to the generated import report.",
                    "value": {
                      "status": "Successful",
                      "jobType": "Import",
                      "progress": {
                        "processed": 5000,
                        "total": 5000,
                        "percentage": 100
                      },
                      "logFileLocation": "s3://mybucket/ingestion-execution/9B2E4C7A-1D3F-4A82-B5E6-7C8D9E0F1A2B_execution_log.json",
                      "reportFolderLocation": "s3://mybucket/ingestion-execution/9B2E4C7A-1D3F-4A82-B5E6-7C8D9E0F1A2B_report/",
                      "startTime": "2024-03-01T10:00:00.000Z",
                      "completionTime": "2024-03-01T11:15:00.000Z",
                      "results": {
                        "successful": 4985,
                        "warnings": 10,
                        "errors": 5
                      }
                    }
                  },
                  "Completed Import Job with Report from SFTP": {
                    "summary": "Successfully completed import job with report, sourced from SFTP",
                    "description": "Shows a completed import job created with includeReport=true from an SFTP data source, where reportFolderLocation points to the generated import report on the same SFTP server.",
                    "value": {
                      "status": "Successful",
                      "jobType": "Import",
                      "progress": {
                        "processed": 5000,
                        "total": 5000,
                        "percentage": 100
                      },
                      "logFileLocation": "sftp://server.com/ingestion-execution/9B2E4C7A-1D3F-4A82-B5E6-7C8D9E0F1A2B_execution_log.json",
                      "reportFolderLocation": "sftp://server.com/ingestion-execution/9B2E4C7A-1D3F-4A82-B5E6-7C8D9E0F1A2B_report/",
                      "startTime": "2024-03-01T10:00:00.000Z",
                      "completionTime": "2024-03-01T11:15:00.000Z",
                      "results": {
                        "successful": 4985,
                        "warnings": 10,
                        "errors": 5
                      }
                    }
                  },
                  "Partially Completed Import Job": {
                    "summary": "Partially completed import job",
                    "description": "Shows an import job that has partially finished but has been paused to due running out of alotted time",
                    "value": {
                      "status": "In Progress",
                      "subStatus": "Paused",
                      "statusReason": "Job was paused due to the maximum job duration being reached.",
                      "jobType": "Import",
                      "progress": {
                        "processed": 4500,
                        "total": 5000,
                        "percentage": 90
                      },
                      "logFileLocation": "s3://mybucket/ingestion-execution/9B2E4C7A-1D3F-4A82-B5E6-7C8D9E0F1A2B_execution_log.json",
                      "startTime": "2024-03-01T10:00:00.000Z",
                      "completionTime": "2024-03-01T11:15:00.000Z",
                      "results": {
                        "successful": 4500,
                        "warnings": 0,
                        "errors": 0
                      }
                    }
                  },
                  "User Cancelled Import Job": {
                    "summary": "User cancelled import job",
                    "description": "Shows a import job that has been user cancelled",
                    "value": {
                      "status": "Cancelled",
                      "statusReason": "Job was cancelled by Admin.",
                      "jobType": "Import",
                      "progress": {
                        "processed": 500,
                        "total": 5000,
                        "percentage": 10
                      },
                      "logFileLocation": "s3://mybucket/ingestion-execution/9B2E4C7A-1D3F-4A82-B5E6-7C8D9E0F1A2B_execution_log.json",
                      "startTime": "2024-03-01T10:00:00.000Z",
                      "results": {
                        "successful": 500,
                        "warnings": 0,
                        "errors": 0
                      }
                    }
                  },
                  "Cancelled Import Job due to being queued": {
                    "summary": "Cancelled import job",
                    "description": "Shows a import job that has been cancelled because it wasn't able to start within specified timeframe",
                    "value": {
                      "status": "Cancelled",
                      "statusReason": "Job was cancelled because Job could not be started before specified stopDate.",
                      "jobType": "Import",
                      "progress": {
                        "processed": 0,
                        "total": 5000,
                        "percentage": 0
                      },
                      "logFileLocation": "s3://mybucket/ingestion-execution/9B2E4C7A-1D3F-4A82-B5E6-7C8D9E0F1A2B_execution_log.json",
                      "startTime": "2024-03-01T10:00:00.000Z",
                      "results": {
                        "successful": 0,
                        "warnings": 0,
                        "errors": 0
                      }
                    }
                  },
                  "Completed Validation Job": {
                    "summary": "Successfully completed validation  job",
                    "description": "Shows a validation job that has finished processing",
                    "value": {
                      "status": "Successful",
                      "jobType": "Validation",
                      "progress": {
                        "processed": 5000,
                        "total": 5000,
                        "percentage": 100
                      },
                      "logFileLocation": "s3://mybucket/ingestion-execution/9B2E4C7A-1D3F-4A82-B5E6-7C8D9E0F1A2B_validation_log.json",
                      "startTime": "2024-03-01T10:00:00.000Z",
                      "completionTime": "2024-03-01T11:15:00.000Z",
                      "results": {
                        "successful": 4985,
                        "warnings": 10,
                        "errors": 5
                      }
                    }
                  },
                  "Scheduled Job": {
                    "summary": "Future scheduled import",
                    "description": "A job queued to start at a specific future time with a scheduled stop time.",
                    "value": {
                      "status": "Scheduled",
                      "jobType": "Import",
                      "progress": {
                        "processed": 0,
                        "total": 0,
                        "percentage": 0
                      },
                      "startTime": "2024-03-02T01:00:00.000Z",
                      "scheduledStopTime": "2024-03-02T05:00:00.000Z",
                      "currentOperation": "Queued for execution"
                    }
                  },
                  "Failed Job": {
                    "summary": "Job that encountered errors",
                    "description": "Shows a job that failed during processing",
                    "value": {
                      "status": "Failed",
                      "jobType": "Import",
                      "progress": {
                        "processed": 1250,
                        "total": 5000,
                        "percentage": 25
                      },
                      "logFileLocation": "s3://mybucket/ingestion-execution/9B2E4C7A-1D3F-4A82-B5E6-7C8D9E0F1A2B_execution_log.json",
                      "startTime": "2024-03-01T10:00:00.000Z",
                      "failureTime": "2024-03-01T10:45:00.000Z",
                      "error": "Database connection timeout after processing 1250 items"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        },
        "tags": [
          "Content Import"
        ]
      }
    },
    "/import/content/validate": {
      "post": {
        "description": "# Validate Import Content\n\n## Overview\nThis API enables users to validate content structure, format, and compliance before importing it into the production knowledge base. Validation is a non-destructive operation that checks content without making any changes to your existing data.\n\n## What Validation Checks\n- **Content Structure**: Verifies required fields and data types\n- **Format Compliance**: Ensures content meets platform requirements\n- **Language Support**: Validates content against supported languages\n- **Metadata Mapping**: Checks field mappings and transformations\n- **Business Rules**: Validates against department-specific rules\n\n## Validation Benefits\n- **Risk Mitigation**: Identify issues before affecting production data\n- **Quality Assurance**: Ensure content meets organizational standards\n- **Cost Savings**: Avoid failed imports that waste processing time\n- **Compliance**: Meet regulatory and internal content requirements\n\n## Validation Process\n1. **Content Analysis**: System analyzes content structure and format\n2. **Rule Validation**: Applies business rules and validation logic\n3. **Quality Assessment**: Evaluates content quality and completeness\n4. **Report Generation**: Creates detailed validation report\n5. **Issue Categorization**: Classifies issues by severity and type\n\n## Common Validation Issues\n- **Missing Required Fields**: Title, description, category, etc.\n- **Invalid Data Types**: Incorrect field formats (dates, numbers, etc.)\n- **Language Mismatches**: Content language not supported by department\n\n## Best Practices\n- **Always Validate First**: Run validation before any import operation\n- **Review Reports**: Carefully examine validation results and warnings\n- **Fix Issues**: Address validation errors before proceeding with import\n- **Test Small Batches**: Validate with small content samples first\n- **Iterate**: Use validation feedback to improve content quality\n",
        "summary": "Create Validation Job",
        "operationId": "createImportValidationJob",
        "x-hideReplay": true,
        "tags": [
          "Content Import"
        ],
        "security": [
          {
            "oAuthClient": [
              "https://api.egain.cloud/auth/.default"
            ]
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateImportContent"
              },
              "examples": {
                "S3 content validation": {
                  "summary": "Validate S3 content",
                  "description": "Validate content from an S3 bucket before import",
                  "value": {
                    "dataSource": {
                      "type": "AWS S3 bucket",
                      "path": "s3://mybucket/myfolder/",
                      "region": "us-east-1",
                      "credentials": {
                        "accessKeyId": "AKIAIOSFODNN7EXAMPLE",
                        "secretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
                      }
                    }
                  }
                },
                "SFTP content validation": {
                  "summary": "Validate SFTP content",
                  "description": "Validate content from an SFTP before import",
                  "value": {
                    "dataSource": {
                      "type": "Shared file path",
                      "path": "sftp://mybucket/myfolder/",
                      "credentials": {
                        "username": "contentuser",
                        "password": "securepassword"
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "## Validation Job Accepted\n\nThe content validation job has been successfully created and queued for processing. The system will analyze your content structure, format, and compliance without making any changes to your existing data.\n\n**Validation Process:**\n1. **Content Analysis**: System examines content structure and format\n2. **Rule Validation**: Applies business rules and validation logic\n3. **Quality Assessment**: Evaluates content quality and completeness\n4. **Report Generation**: Creates detailed validation report with issues and recommendations\n\n**Expected Processing Time:**\n- Small content sets (< 1,000 items): 2-10 minutes\n- Medium content sets (1,000-10,000 items): 10-30 minutes\n- Large content sets (> 10,000 items): 30-90 minutes\n\n**Next Steps:**\n1. Use the returned job ID to monitor validation progress\n2. Review validation results and address any issues\n3. Proceed with import only after validation passes\n",
            "headers": {
              "location": {
                "schema": {
                  "type": "string",
                  "example": "/knowledge/contentmgr/v4/import/content/7A84B875-6F75-4C7B-B137-0632B62DB0BD/status"
                },
                "description": "**Location Header**\n\nThis header contains the URL to check the status of your validation job. The job ID (7A84B875-6F75-4C7B-B137-0632B62DB0BD in this example) is your unique identifier for tracking this operation.\n\n**Usage:**\n```bash\nGET /knowledge/contentmgr/v4/import/content/7A84B875-6F75-4C7B-B137-0632B62DB0BD/status\n```\n"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "412": {
            "$ref": "#/components/responses/412_precondition_failed"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/import/content/{job_id}/cancel": {
      "post": {
        "description": "# Cancel Import or Validation Job\n\n## Overview\nThis API allows users to cancel import or validation operations that are currently in progress or scheduled for future execution. Cancellation is immediate for scheduled jobs and graceful for running jobs.\n\n## Cancellation Behavior\n- **Scheduled Jobs**: Immediate cancellation, no processing occurs\n- **In Progress Jobs**: Graceful shutdown, current item completes, no new items start\n- **Successful Jobs**: Cannot be cancelled (returns error)\n- **Failed Jobs**: Cannot be cancelled (already stopped)\n\n## When to Cancel\n- **Content Issues**: Discover problems with source content\n- **Timing Changes**: Need to reschedule for different time\n- **Resource Constraints**: System resources are needed elsewhere\n- **User Request**: Manual cancellation by authorized users\n- **System Maintenance**: Planned maintenance windows\n\n## Cancellation Process\n1. **Request Received**: System receives cancellation request\n2. **Status Check**: Verifies current job status\n3. **Graceful Shutdown**: For running jobs, completes current item\n4. **Resource Cleanup**: Releases allocated system resources\n5. **Status Update**: Marks job as cancelled\n6. **Notification**: Updates job status and logs\n\n## Post-Cancellation\n- **Job Status**: Changes to \"Cancelled\"\n- **Partial Results**: Any completed items remain in system\n- **Logs**: Cancellation reason and timing recorded\n- **Resources**: System resources freed for other operations\n\n## Best Practices\n- **Monitor Jobs**: Regularly check job status to identify candidates for cancellation\n- **Plan Cancellations**: Schedule cancellations during low-usage periods\n- **Resource Planning**: Consider resource impact before cancelling large jobs\n",
        "summary": "Cancel Job",
        "operationId": "cancelImport",
        "x-hideReplay": true,
        "security": [
          {
            "oAuthClient": [
              "https://api.egain.cloud/auth/.default"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/jobId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/components/responses/NoContent"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "409": {
            "description": "Conflict. The job is not in a state that can be cancelled (e.g., it has already completed or failed)."
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        },
        "tags": [
          "Content Import"
        ]
      }
    },
    "/article/{articleID}": {
      "get": {
        "tags": [
          "Articles"
        ],
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.read"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.read"
            ]
          },
          {
            "oAuthClient": [
              "https://api.egain.cloud/auth/.default"
            ]
          }
        ],
        "summary": "Get An Article By Id With Content",
        "operationId": "getArticleWithContent",
        "description": "## Overview\nThis API retrieves a single article or an article suggestion by its ID in a single language.\n\nThe response always includes the article summary representation; additional article properties are returned\nonly when requested through the `articleAdditionalAttributes` query parameter.\n\nUse the required `versionSelector` query parameter to control which article version is returned. If\n`versionSelector` is `published`, the latest published and available version of the requested article is returned.\nIf `versionSelector` is `latest`, the latest version of the article is returned, which might be draft, published \netc. <br/>\n\nWhen `versionSelector` is `latest`:\n  * If the article is checked out by another user, the latest checked-in version is returned.\n  * If the article is checked out by the requesting user, the checked-out version is returned.\n\n**Note:** Article suggestions cannot be published and therefore cannot be retrieved with\n`versionSelector=published`. Use `versionSelector=latest` to retrieve article suggestions.\n\nIf the requested article ID exists but has no applicable version, the API returns `204 No Content`.\n\nSome properties in the response schema are shown as allowing `null`, because `null` is how the\n[Edit Article](../apis/v4/knowledge/contentmgr/api-bundled/articles/editarticle) API removes\nthem. This API does not return `null` for those properties — a property that has no value is\nomitted from the response.\n\n### Inline images\n  An image embedded in the article content is returned as a tag carrying a generated `id`\n  and a signed `src`, with the attributes it was authored with preserved:\n\n  ```html\n  <img id=\"96ea5bd9-36dd-4771-aaa7-aa8cf794307e\" src=\"https://api.egain.cloud/core/filemgr/v4/assets/download?signature=35674B764E7848586E786...\" alt=\"Forgot password link\" width=\"480\" />\n  ```\n\n  * `src` can be fetched directly, including by a browser rendering the tag.\n  * The signature in the image source URL is valid for 30 minutes. Once it expires, obtain a \n    fresh URL from the File Manager\n    [Generate URL to download a file](../apis/v4/core/filemgr/api-bundled/storageservice/generatefilepredownloadurl)\n    API, sending the image's `id` as `fileId`, `article` as `application`, and this article's\n    ID as `articleId`.\n  * Inline images are never listed in `versions[].attachments`. That array carries only the\n    files attached to the version; an embedded image appears in `content` alone.\n\n  To change the article's inline images, send the content back through\n  [Edit Article](../apis/v4/knowledge/contentmgr/api-bundled/articles/editarticle), which\n  keeps an image by its `id`, adds one by `fileUploadId`, and removes one when its tag is\n  dropped.\n\n## Permissions\n  The user must have either the `Author` or `Knowledge Base Manager` role, or a custom role \n  with `View Folder` action. Additionally:\n  * To retrieve an article, the requesting user must have `View Folder` permission on the article's parent folder.\n  * To retrieve an article suggestion, the user must either be the creator of the suggestion or \n    be allowed to work on the suggestion through the article approval process.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/parameters-articleId"
          },
          {
            "$ref": "#/components/parameters/versionSelector"
          },
          {
            "name": "$lang",
            "in": "query",
            "required": true,
            "description": "The knowledge base language in which the article is retrieved.\nMust be one of the enabled Knowledge Base languages.\n",
            "schema": {
              "$ref": "#/components/schemas/KnowledgeBaseLanguageCode"
            }
          },
          {
            "$ref": "#/components/parameters/articleAdditionalAttributes"
          },
          {
            "$ref": "#/components/parameters/expandMacros"
          },
          {
            "$ref": "#/components/parameters/accept"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/GetArticleWithContentResponse"
          },
          "204": {
            "description": "No content"
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404_common_not_found"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/articles/{articleIDs}": {
      "get": {
        "tags": [
          "Articles"
        ],
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.read"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.read"
            ]
          },
          {
            "oAuthClient": [
              "https://api.egain.cloud/auth/.default"
            ]
          }
        ],
        "summary": "Get Articles By Ids",
        "operationId": "getArticlesByIds",
        "description": "## Overview\nThis API retrieves one or more articles or article suggestions by their IDs in a single language.\n\nThe response always includes the article summary representation for each returned article; additional\narticle properties are returned only when requested through the `articleAdditionalAttributes`\nquery parameter.\n\nThis API never returns article body `content`. Use the\n[Get An Article By Id With Content](../apis/v4/knowledge/contentmgr/api-bundled/articles/getarticlewithcontent) API when article\ncontent is needed. </p>\n\nUse the required `versionSelector` query parameter to control which article version is returned. If\n`versionSelector` is `published`, the latest published and available version of each requested article is\nreturned. If `versionSelector` is `latest`, the latest version of each requested article is returned, which\nmight be draft, published etc.\n\nWhen `versionSelector` is `latest`:\n  * If an article is checked out by another user, the latest checked-in version is returned.\n  * If an article is checked out by the requesting user, the checked-out version is returned.\n\n**Note:** Article suggestions cannot be published and therefore cannot be retrieved with\n`versionSelector=published`. Use `versionSelector=latest` to retrieve article suggestions.\n\nArticle IDs must be provided as a comma-separated list in the request URI. Results are paginated\nusing `$pagenum` and `$pagesize`.\n\nThis API can return fewer articles than were requested. For example, if `versionSelector=published`, any\nrequested article that does not have a published and available version is omitted from the response.\nIf none of the requested articles has an applicable version, the API returns `204 No Content`.\n\nSome properties in the response schema are shown as allowing `null`, because `null` is how the\n[Edit Article](../apis/v4/knowledge/contentmgr/api-bundled/articles/editarticle) API removes\nthem. This API does not return `null` for those properties — a property that has no value is\nomitted from the response.\n\n## Permissions\n  The user must have either the `Author` or `Knowledge Base Manager` role, or a custom role \n  with `View Folder` action. Additionally:\n  * For articles: the user must have `View Folder` permission on each article's parent folder.\n  * For article suggestions: the user must either be the suggestion's creator or be allowed to work \n    on the suggestion through the article approval process.\n\n  If any requested article fails the permission check, the entire request is rejected.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/articleIds"
          },
          {
            "$ref": "#/components/parameters/versionSelector"
          },
          {
            "name": "$lang",
            "in": "query",
            "required": true,
            "description": "The knowledge base language in which the articles are retrieved.\nMust be one of the enabled Knowledge Base languages.\n",
            "schema": {
              "$ref": "#/components/schemas/KnowledgeBaseLanguageCode"
            }
          },
          {
            "$ref": "#/components/parameters/articleAdditionalAttributesForGetByIds"
          },
          {
            "$ref": "#/components/parameters/pagenum"
          },
          {
            "$ref": "#/components/parameters/pagesize"
          },
          {
            "$ref": "#/components/parameters/accept"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/GetArticlesByIdsResponse"
          },
          "204": {
            "description": "No content"
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404_common_not_found"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      },
      "patch": {
        "tags": [
          "Articles"
        ],
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.manage"
            ]
          }
        ],
        "summary": "Edit Article",
        "operationId": "editArticle",
        "description": "## Overview\n  This API allows a user to edit details of a single article.\n  To specify whether you are editing, checking in, or publishing the article,\n  use the required `operation` query parameter.\n\n### Removing values and editing collections\n  A property omitted from the request is left unchanged. To remove a value, send it\n  explicitly in the form that matches its type:          \n\n  * **Strings** — send an empty string (`\"\"`). For example, `\"summary\": \"\"` clears the\n    version summary.\n  * **Objects** — send `null`. For example, `\"compliancePolicy\": null` unassigns the\n    compliance policy from the article. An object is removed as a whole; `{}` is not a\n    removal form and is treated as an object with no properties supplied.\n  * **Arrays** — the supplied array replaces the current one in full; there is no partial\n    add or remove. To drop two entries and add one, send the complete list as it should\n    read after the edit. To clear an array, send an empty array (`[]`).\n  * **Dates and numbers** — send `null`. There is no empty date or empty number, so `\"\"` is\n    not accepted. For example, `\"expirationDate\": null` clears the expiration date.\n\n  These rules apply at every level of the request body. Within an object supplied for\n  update, its own properties follow the same rules: those omitted are left unchanged, and\n  those sent as `\"\"`, `null`, or `[]` are removed. For example,\n  `\"macro\": { \"defaultValue\": \"\" }` clears the macro's default value and leaves the rest of\n  the macro unchanged.\n\n  `links` and `unlinks` are the exception to the array rule. They do not replace a\n  collection; they describe resource associations to add and to remove — for example,\n  topics and related articles.\n\n  Not every property can be removed. Some must always hold a value — such as\n  `versions.name`, `versions.articleType`, `versions.ownedBy`, and\n  `versions.availabilityDate` — and sending `\"\"` or `null` for them is rejected instead of\n  clearing the value. Read-only properties cannot be sent at all.\n\n### Inline images\n  `content` is authoritative for the version's inline images. Send it as the article should\n  read after the edit — images to keep, images to add, and no tag for images to drop.\n\n  * **Keep an existing image** by leaving its tag as\n    [Get Article](../apis/v4/knowledge/contentmgr/api-bundled/articles/getarticlewithcontent)\n    returned it. The server resolves the image from `id` alone and never reads `src`, so\n    `src` can be omitted and a signature that has since expired is not a problem.\n  * **Add a new image** exactly as in\n    [Create Article](../apis/v4/knowledge/contentmgr/api-bundled/articles/createarticle) —\n    pre-upload it with `application` set to `article` and `isInline` set to `true`, then put\n    the returned `fileUploadId` on the tag.\n  * **Remove an image** by dropping its tag. An inline image whose tag is not present in the\n    submitted `content` is removed from the version.\n\n  ```html\n  <img id=\"96ea5bd9-36dd-4771-aaa7-aa8cf794307e\" alt=\"Forgot password link\" width=\"480\" />\n  <img fileUploadId=\"c1f0a3d2-9b47-4e15-8a6c-2d7e5f4b8091\" alt=\"Reset confirmation\" width=\"480\" />\n  ```\n\n  * A tag must not carry both `id` and `fileUploadId`. Sending both is rejected with `400`.\n  * An `id` that does not exist, or that belongs to a different article or version, is\n    rejected with `400`, and no change is saved.\n  * Inline images are never listed in `attachments`. The two are separate uploads,\n    distinguished by `isInline` at pre-upload time, and are managed independently.\n  * Omitting `content` leaves the current content, and with it the current inline images,\n    unchanged.\n\n  Each newly added image is stored and its tag rewritten into the hosted form, so the next\n  Get Article returns it with a generated `id` and a signed `src`, alongside the images that\n  were kept.\n\n## Permissions\n  The user must have either the `Author` or `Knowledge Base Manager` role, or a custom role\n  with `Edit Article` action. Additionally:\n  * If article is being edited using any operation\n    * User must have `Edit Article` permission on the parent folder.\n    * If related article links or unlinks are supplied with the request, the user must have\n      `View Folder` permission on the parent folder for each of the related articles.\n  * If `operation` is `checkin`\n    * If the article is not in the draft stage, the user must be a contributor of the current article stage.\n  * If `operation` is `publish`\n    * The requesting user must be allowed by this article's workflow to move the article\n      to `published` stage.\n\n## Preconditions\n  * Article must have been __checked out__ by the requesting user.\n  * When `versions` is included, the article version being edited is always the latest version.\n\n## Conflicts\n  * The article name (`versions[].name`) must be unique among articles of the same language in\n    the same folder. Renaming the article in the `$lang` language, including translating its\n    name, to a name already used by another article in that folder and language is rejected\n    with `409`. The same name in a different language is not a conflict.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/articleIdInCSVPath"
          },
          {
            "$ref": "#/components/parameters/articleOperation"
          },
          {
            "name": "$lang",
            "in": "query",
            "required": true,
            "description": "The knowledge base language in which the article is being edited. Must be one of the enabled Knowledge Base languages.",
            "schema": {
              "$ref": "#/components/schemas/KnowledgeBaseLanguageCode"
            }
          },
          {
            "$ref": "#/components/parameters/ifMatchHeader"
          },
          {
            "$ref": "#/components/parameters/contentType"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/EditArticleRequest"
        },
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/eTag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404_common_not_found"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "409": {
            "$ref": "#/components/responses/409_duplicate_name"
          },
          "412": {
            "$ref": "#/components/responses/412_Article"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/articles/{articleIDs}/checkout": {
      "put": {
        "tags": [
          "Articles"
        ],
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.manage"
            ]
          }
        ],
        "summary": "Checkout Article",
        "operationId": "checkoutArticle",
        "description": "## Overview\nThis API allows a user to check out an article.\nThis creates a new version of the article in the requested knowledge base language, in a\nchecked-out state, and locks it to the requesting user. Only the user who holds the\nlock can edit the article through the\n[Edit Article](../apis/v4/knowledge/contentmgr/api-bundled/articles/editarticle) API. </p>\n\nThis API is not for suggestions.\n\n## Permissions\n The user must have either the `Author` or `Knowledge Base Manager` role, or a custom role \n with `Edit Article` action. Additionally:\n  * The user must have `Edit Article` permission on the parent folder.\n  * If the article is not in the `draft` or `published` stage (in the article review workflow), \n    the user must be a contributor of the current article stage.\n\n## Preconditions\n  * The latest version of the article in the language specified by `$lang` must not\n    already have been checked out (locked). Only one user may hold the lock for an article\n    at a time.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/articleIdInCSVPath"
          },
          {
            "name": "$lang",
            "in": "query",
            "required": true,
            "description": "The knowledge base language in which the new version is being checked out. Must be one of the enabled Knowledge Base languages.",
            "schema": {
              "$ref": "#/components/schemas/KnowledgeBaseLanguageCode"
            }
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/eTag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "404": {
            "$ref": "#/components/responses/404_common_not_found"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "409": {
            "$ref": "#/components/responses/409_conflict_article_locked"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/articles": {
      "post": {
        "tags": [
          "Articles"
        ],
        "security": [
          {
            "oAuthUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage"
            ]
          },
          {
            "oAuthOnBehalfOfUser": [
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.manage"
            ]
          }
        ],
        "summary": "Create Article",
        "operationId": "createArticle",
        "description": "## Overview\n  This API allows a user to create an article in a folder. The article is created in every\n  enabled knowledge base language. `language` in the request body is the source language,\n  in which the supplied content is authored.\n  Newly created articles are created in the checked-out (locked) state.\n\n  This operation is not for suggestions.\n\n  Some properties in the request schema are shown as allowing `null`, because `null` is how\n  the [Edit Article](../apis/v4/knowledge/contentmgr/api-bundled/articles/editarticle) API\n  removes them. On create there is nothing to remove, so sending `null` is unnecessary\n  and equivalent to omitting the property.\n\n### Inline images\n  An image embedded in `content` is uploaded before the article is created, through the same\n  pre-upload flow as an attachment. Pre-upload it with the File Manager\n  [Generate URL to upload a file](../apis/v4/core/filemgr/api-bundled/storageservice/generatefilepreuploadurl)\n  API, with `application` set to `article` and `isInline` set to `true`. Send the image bytes\n  to the returned `uploadUrl`, then place the returned `fileUploadId` as an attribute on the\n  HTML tag that renders the image — for example, `<img>`:\n\n  ```html\n  <img fileUploadId=\"c1f0a3d2-9b47-4e15-8a6c-2d7e5f4b8091\" alt=\"Forgot password link\" width=\"480\" />\n  ```\n\n  The `fileUploadId` attribute is what the server resolves; the tag carrying it is not\n  constrained. Whichever tag the content uses for images — for example, `<img>` or\n  `<picture>` — is accepted and stored as sent.\n\n  * `fileUploadId` is the only attribute the server resolves the image from. Don't send `src`\n    alongside it as it will be ignored.\n  * Every other attribute on the tag, such as `alt`, `width`, `height`, `style`, and `class`,\n    is preserved.\n  * The same `fileUploadId` can be referenced by more than one tag; each resolves to the same\n    stored image.\n  * A `fileUploadId` that is unknown, expired, or was pre-uploaded with `isInline` set to\n   `false` is rejected with `400`, and the article is not created.\n  * Inline images and attachments are separate uploads. An image pre-uploaded with `isInline`\n    set to `true` belongs in `content` only and must not be listed in\n    `versions[].attachments`; a file pre-uploaded with `isInline` set to `false` belongs in\n    `versions[].attachments` only.\n  * A `fileUploadId` attribute is interpreted in `versions[].content` only. In any other\n    property it is stored as ordinary text.\n\n  The server stores the image and rewrites the tag into its hosted form, replacing\n  `fileUploadId` with a generated `id` and a signed `src` and carrying the other attributes\n  through. The tag name itself is unchanged. For the tag above,\n  [Get Article](../apis/v4/knowledge/contentmgr/api-bundled/articles/getarticlewithcontent)\n  returns:\n\n  ```html\n  <img id=\"96ea5bd9-36dd-4771-aaa7-aa8cf794307e\" src=\"https://api.egain.cloud/core/filemgr/v4/assets/download?signature=35674B764E7848586E786...\" alt=\"Forgot password link\" width=\"480\" />\n  ```\n\n  ## Permissions\n  The user must have either the `Author` or `Knowledge Base Manager` role, or a custom role\n  with `Create Article` action. Additionally:\n  * The user must have `Create Article` permission on the article's parent folder.\n  * If related article links are supplied in the request, the user must have\n    `View Folder` permission on each of the related article's parent folder.\n\n  ## Conflicts\n  * The article name (`versions[].name`) must be unique among articles of the same language\n    in the same folder. The article is created in every enabled knowledge base language, so a\n    name already used by another article in that folder in any of those languages is rejected\n    with `409`.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/contentType"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageV2"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/CreateArticleRequest"
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "location": {
                "description": "Self link of the created article",
                "schema": {
                  "type": "string",
                  "example": "/knowledge/contentmgr/v4/articles/DEV-5401"
                }
              },
              "ETag": {
                "$ref": "#/components/headers/eTag"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400_common_bad_request"
          },
          "401": {
            "$ref": "#/components/responses/401_invalid_authorization"
          },
          "403": {
            "$ref": "#/components/responses/403_forbidden"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "409": {
            "$ref": "#/components/responses/409_duplicate_name"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequest"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "oAuthUser": {
        "type": "oauth2",
        "description": "**OAuth 2.0 Authentication**\n\nAuthenticate as a user (agent) using the Authorization Code flow with PKCE (Proof Key for Code Exchange). This provides secure, standards-based authentication for accessing the Knowledge Content Manager APIs.\n\n**Authentication Flow:**\n1. **Authorization Request**: Redirect user to authorization URL\n2. **User Consent**: User grants permission to access their account\n3. **Authorization Code**: Server returns authorization code\n4. **Token Exchange**: Exchange code for access token\n5. **API Access**: Use access token for API requests\n\n**Required Scopes:**\n- `knowledge.contentmgr.manage`: Full access to content management operations\n\n**Security Features:**\n- PKCE prevents authorization code interception attacks\n- Access tokens are short-lived for security\n- Refresh tokens enable long-term access\n- Secure token storage and transmission\n\n**Best Practices:**\n- Always use HTTPS for token transmission\n- Store tokens securely (not in localStorage)\n- Implement proper token refresh logic\n- Monitor token usage and revoke when needed\n",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.egain.cloud/f51302dd-7036-41b5-b619-e1a52a67c780/B2C_1A_User_V3_SignIn_OIDC/oauth2/v2.0/authorize?domain_hint=developerv3api.egain.cloud",
            "tokenUrl": "https://login.egain.cloud/f51302dd-7036-41b5-b619-e1a52a67c780/B2C_1A_User_V3_SignIn_OIDC/oauth2/v2.0/token",
            "scopes": {
              "https://api.egain.cloud/auth/knowledge.contentmgr.read": "Allows read access to the eGain Knowledge Content Manager APIs.",
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage": "Allows full access to the eGain Knowledge Content Manager APIs."
            },
            "x-usePkce": {
              "disableManualConfiguration": true,
              "hideClientSecretInput": true
            }
          }
        },
        "x-defaultClientId": "9924ecd8-7716-427f-9998-d87081df567a"
      },
      "oAuthCustomer": {
        "type": "oauth2",
        "description": "Authenticate as a customer using code flow with PKCE.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.egain.cloud/f51302dd-7036-41b5-b619-e1a52a67c780/B2C_1A_Customer_V3_SignUpOrSignIn_OIDC/oauth2/v2.0/authorize?domain_hint=developerv3api.egain.cloud",
            "tokenUrl": "https://login.egain.cloud/f51302dd-7036-41b5-b619-e1a52a67c780/B2C_1A_Customer_V3_SignUpOrSignIn_OIDC/oauth2/v2.0/token",
            "scopes": {
              "https://api.egain.cloud/auth/knowledge.contentmgr.read": "Allows read access to the eGain Knowledge Content Manager APIs.",
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage": "Allows full access to the eGain Knowledge Content Manager APIs."
            },
            "x-usePkce": {
              "disableManualConfiguration": true,
              "hideClientSecretInput": true
            }
          }
        },
        "x-defaultClientId": "9924ecd8-7716-427f-9998-d87081df567a"
      },
      "oAuthAnonymousCustomer": {
        "type": "oauth2",
        "description": "Authenticate as an anonymous customer.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://login.egain.cloud/internal/oauth2/v2.0/anonymous/token?user_type=customer&domain_hint=developerv3api.egain.cloud",
            "scopes": {
              "https://api.egain.cloud/auth/knowledge.contentmgr.read": "Allows read access to the eGain Knowledge Content Manager APIs.",
              "https://api.egain.cloud/auth/knowledge.contentmgr.manage": "Allows full access to the eGain Knowledge Content Manager APIs."
            }
          }
        },
        "x-defaultClientId": "7bbc9ba6-0465-46f0-91f4-d2742cdc0ef8"
      },
      "oAuthClient": {
        "type": "oauth2",
        "description": "Authenticate as a client (Server to Server).",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://login.egain.cloud/global/f51302dd-7036-41b5-b619-e1a52a67c780/oauth2/v2.0/token",
            "scopes": {
              "https://api.egain.cloud/auth/.default": "Default scope"
            }
          }
        },
        "x-defaultClientId": "7bbc9ba6-0465-46f0-91f4-d2742cdc0ef8"
      },
      "oAuthOnBehalfOfUser": {
        "type": "oauth2",
        "description": "Authenticate as a client application (server) acting on behalf of a user.",
        "flows": {
          "password": {
            "tokenUrl": "https://api.egain.cloud/core/authmgr/v4/oauth2/v2.0/onbehalfof/token?user_type=user&tenantId=TMPROD69343811",
            "scopes": {
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.read": "Allows read access to the eGain Knowledge Content Manager APIs on behalf of a user.",
              "https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.manage": "Allows full access to the eGain Knowledge Content Manager APIs on behalf of a user."
            }
          }
        }
      }
    },
    "parameters": {
      "hookID": {
        "name": "hookID",
        "in": "path",
        "description": "Integer ID of the Hook resource.",
        "required": true,
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9999999999
        }
      },
      "versionID": {
        "name": "versionID",
        "in": "path",
        "description": "The sequential version number of the hook (e.g., 1, 2, 3).",
        "required": true,
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9999999999
        }
      },
      "HookTypeParam": {
        "name": "type",
        "in": "query",
        "description": "Filter by hook type.",
        "schema": {
          "type": "string",
          "enum": [
            "import_pre_validation_hook",
            "import_post_validation_hook"
          ]
        }
      },
      "portalId": {
        "name": "portalId",
        "in": "query",
        "required": false,
        "description": "Returns the topics associated with the specified portal. A portal ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits.",
        "schema": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
          "minLength": 7,
          "maxLength": 20
        },
        "example": "PROD-1002"
      },
      "departmentId": {
        "name": "departmentId",
        "in": "query",
        "required": false,
        "description": "Returns the topics belonging to the specified department.",
        "schema": {
          "type": "string",
          "pattern": "^999$|^[1-9][0-9]{3,8}$",
          "minLength": 3,
          "maxLength": 9
        },
        "example": "1000"
      },
      "parentId": {
        "name": "parentId",
        "in": "query",
        "required": false,
        "description": "Returns the direct sub-topics of the specified parent topic.",
        "schema": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
          "minLength": 7,
          "maxLength": 20
        },
        "example": "KB-3102"
      },
      "articleId": {
        "name": "articleId",
        "in": "query",
        "required": false,
        "description": "Returns the topics that the specified article is used in. An article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits.",
        "schema": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
          "minLength": 7,
          "maxLength": 20
        },
        "example": "PROD-2996"
      },
      "filterType": {
        "name": "filter[type]",
        "in": "query",
        "required": false,
        "description": "Filters topics by how they were created: `manual` for user-defined topics, or `topicsFromFolder` for topics automatically generated from the Knowledge Console folder structure (\"Topics From Folders\").",
        "schema": {
          "type": "string",
          "enum": [
            "manual",
            "topicsFromFolder"
          ]
        }
      },
      "topicAdditionalAttributes": {
        "name": "topicAdditionalAttributes",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "created",
              "description",
              "department",
              "translateContent",
              "articleCount",
              "language",
              "path",
              "subTopicCount",
              "imageUrl",
              "articleForTopicHomeContent",
              "customAttributes",
              "generatedFromFolderId"
            ]
          }
        },
        "description": "Additional Topic attributes to include in the response. By default only attributes marked as required in the\nresponse schema are returned. Multiple attributes can be requested as a comma-separated list of values.\n**Note:** Returning `subTopicCount` for a large topic tree is a computationally heavy operation; use it judiciously.\n",
        "style": "form",
        "explode": false,
        "example": [
          "description",
          "customAttributes"
        ]
      },
      "acceptLanguageV2": {
        "name": "Accept-Language",
        "in": "header",
        "description": "The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/LoginLanguage"
        }
      },
      "accept": {
        "name": "Accept",
        "in": "header",
        "description": "The content type accepted by the client.",
        "required": true,
        "schema": {
          "type": "string",
          "default": "application/json",
          "enum": [
            "application/json"
          ]
        }
      },
      "pagenum": {
        "name": "$pagenum",
        "in": "query",
        "description": "Pagination parameter that specifies the page number of results to be returned. Used in conjunction with $pagesize.",
        "required": false,
        "schema": {
          "type": "integer",
          "format": "int64",
          "minimum": 1,
          "maximum": 999,
          "default": 1
        }
      },
      "pagesize": {
        "name": "$pagesize",
        "in": "query",
        "description": "Pagination parameter that specifies the number of results per page. Used in conjunction with $pagenum.",
        "required": false,
        "schema": {
          "type": "integer",
          "format": "int64",
          "minimum": 1,
          "maximum": 75,
          "default": 10
        }
      },
      "order": {
        "name": "$order",
        "in": "query",
        "description": "Sort direction applied to the attribute named in `$sort`. Must be supplied together with `$sort`; providing `$order` on its own is rejected with `400-124`. When `$sort` is supplied without `$order`, the result is sorted in ascending order (the default `$order=asc`).",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "example": "asc"
        }
      },
      "levelParam": {
        "name": "$level",
        "in": "query",
        "required": false,
        "description": "Depth of the level of topic hierarchy.\n\n**Max depth in a request: 20**\n\n- **0** - This denotes only the root level\n- **1-20** - This denotes hierarchy up to any other positive integer value level from root level\n\nIf **$level** is provided outside of 0 together with **$sort**, primary sort will be on depth first followed by **$sort** value.\n",
        "schema": {
          "type": "integer",
          "default": 0,
          "example": 1,
          "minimum": 0,
          "maximum": 20
        }
      },
      "sortParam": {
        "name": "$sort",
        "in": "query",
        "required": false,
        "description": "Attribute on which result list will be sorted.",
        "schema": {
          "type": "string",
          "example": "name",
          "default": "id",
          "enum": [
            "id",
            "name",
            "description",
            "created",
            "lastModified"
          ]
        }
      },
      "contentType": {
        "name": "Content-Type",
        "in": "header",
        "description": "The media type sent by the client.",
        "required": true,
        "schema": {
          "type": "string",
          "default": "application/json",
          "enum": [
            "application/json"
          ]
        }
      },
      "topicIdsInPath": {
        "name": "topicIDs",
        "in": "path",
        "description": "One or more topic IDs, separated by commas. Each topic ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits. **Maximum of 75 topic IDs allowed.**",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^([a-zA-Z0-9]{2,4}-\\d{4,15})(,[a-zA-Z0-9]{2,4}-\\d{4,15}){0,74}$",
          "minLength": 7,
          "maxLength": 1574,
          "example": "KB-2268,KB-2269"
        }
      },
      "deleteIfUsedInPortal": {
        "name": "deleteIfUsedInPortal",
        "in": "query",
        "description": "Explicit request to delete specified topics even if some of them are used in a portal(s). If this parameter is absent and any of the topics specified in the URI are used in a portal(s), the server will return '422 - Unprocessable Content'.",
        "schema": {
          "type": "boolean"
        },
        "example": true
      },
      "deleteSubtopics": {
        "name": "deleteSubtopics",
        "in": "query",
        "required": false,
        "description": "When true, all sub-topics under the specified topics are also deleted. If this parameter is absent and any of the specified topics contain sub-topics, the server will return '422 - Unprocessable Content'.",
        "schema": {
          "type": "boolean",
          "default": false
        }
      },
      "topicIdSinglePath": {
        "name": "topicIDs",
        "in": "path",
        "description": "The ID of a single topic. A topic ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits.",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
          "minLength": 7,
          "maxLength": 20
        },
        "example": "KB-2268"
      },
      "ifMatchHeader": {
        "name": "If-Match",
        "in": "header",
        "required": true,
        "description": "ETag value from a prior response; the server rejects the request with `412` if the resource has changed.",
        "schema": {
          "type": "string",
          "format": "date-time",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$",
          "minLength": 20,
          "maxLength": 24,
          "example": "2026-04-15T09:00:00.000Z"
        }
      },
      "mandatoryDepartmentId": {
        "name": "departmentId",
        "description": "The ID of the department",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^999$|^[1-9][0-9]{3,8}$",
          "example": "999",
          "minLength": 3,
          "maxLength": 9
        }
      },
      "folderAdditionalAttributes": {
        "name": "folderAdditionalAttributes",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "created",
              "description",
              "department",
              "translateContent",
              "permissions",
              "articleCount",
              "language",
              "path",
              "isSystemCreated",
              "subFolderCount"
            ]
          }
        },
        "description": "Additional Folder attributes to include in the response. By default, only attributes marked as required in the \nresponse schema are returned. Multiple attributes can be requested as a comma-separated list of values.\n**Note:** Returning `subFolderCount` for a large folder tree is a computationally heavy operation; use it judiciously.\n",
        "style": "form",
        "explode": false,
        "example": [
          "description",
          "permissions"
        ]
      },
      "parameters-levelParam": {
        "name": "$level",
        "in": "query",
        "required": false,
        "description": "Depth of the level of folder hierarchy.\n\n- **0** - This denotes only the top level.\n- **1-20** - This denotes hierarchy up to any other positive integer value level from top level.\n\nIf **$level** is provided outside of 0 together with **$sort**, primary sort will be on depth first followed by **$sort** value.\n",
        "schema": {
          "type": "integer",
          "default": 0,
          "minimum": 0,
          "maximum": 20,
          "example": 1
        }
      },
      "folderIdsInPath": {
        "name": "folderIDs",
        "in": "path",
        "description": "One or more folder IDs, separated by commas. **Maximum of 75 folder IDs allowed.**",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^[1-9][0-9]{13,18}(,[1-9][0-9]{13,18}){0,74}$",
          "minLength": 14,
          "maxLength": 1499
        },
        "example": "20150000000203,40960000000096"
      },
      "parameters-deleteIfUsedInPortal": {
        "name": "deleteIfUsedInPortal",
        "in": "query",
        "description": "Explicit request to delete specified folders even if some linked topics are used in a portal(s).  If this parameter is absent and any of the topics linked to folders specified in the URI are used in a portal(s),  the server will return '422 - Unprocessable Content'.",
        "schema": {
          "type": "boolean"
        },
        "example": true
      },
      "deleteUnreferencedArticles": {
        "name": "deleteUnreferencedArticles",
        "in": "query",
        "required": false,
        "description": "When true, the system asynchronously deletes all articles within the folder that are not referenced elsewhere (e.g., not targeted by links, macros, or active cases).\nIf all articles in the folder are unreferenced, they are all deleted and the folder is deleted as well.\nIf some articles are referenced, only the unreferenced articles are deleted; the referenced articles remain and the folder is preserved since it still contains content.",
        "schema": {
          "type": "boolean"
        },
        "example": true
      },
      "folderIdInPath": {
        "name": "folderIDs",
        "in": "path",
        "description": "A single Folder ID",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^[1-9][0-9]*$",
          "minLength": 14,
          "maxLength": 19
        },
        "example": "20150000000203"
      },
      "jobId": {
        "name": "job_id",
        "in": "path",
        "description": "**Job ID Parameter**\n\nThe unique identifier for the import or validation job. This ID was returned when the job was created via the Import or Validate API.\n\n**Format:** UUID v4 (e.g., 7A84B875-6F75-4C7B-B137-0632B62DB0BD)\n\n**Example Usage:**\n```bash\nGET /import/content/7A84B875-6F75-4C7B-B137-0632B62DB0BD/status\n```\n",
        "required": true,
        "schema": {
          "type": "string",
          "example": "7A84B875-6F75-4C7B-B137-0632B62DB0BD",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        }
      },
      "verboseJobStatus": {
        "name": "verbose",
        "in": "query",
        "description": "**Verbose Job Status Parameter**\n\nReturns Job Status' Sub-Status and Status Reasoning. \n",
        "required": false,
        "schema": {
          "type": "boolean",
          "default": false
        }
      },
      "parameters-articleId": {
        "name": "articleID",
        "description": "The ID of the Article.<br><br>An Article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits.",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
          "minLength": 7,
          "maxLength": 20,
          "example": "PROD-2996"
        }
      },
      "versionSelector": {
        "name": "versionSelector",
        "in": "query",
        "required": true,
        "description": "Controls which version of the article to return based on its position in the article workflow process. If `published`, the latest published and available version is returned. If `latest`, the very latest version is returned which might be draft, published etc.",
        "schema": {
          "type": "string",
          "enum": [
            "published",
            "latest"
          ]
        }
      },
      "articleAdditionalAttributes": {
        "name": "articleAdditionalAttributes",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "department",
              "created",
              "macro",
              "suggestionStatus",
              "articleReviewDetails",
              "lockedBy",
              "language",
              "notes",
              "relatedQuestions",
              "linkAlias",
              "customAttributes",
              "isPublishedVersionAvailable",
              "isPublishedVersionExpired",
              "isPublishedVersionScheduled",
              "isLatestVersionInDraft",
              "articleAction",
              "suggestionResolutionCode",
              "compliancePolicy",
              "versions.versionNumber",
              "versions.created",
              "versions.description",
              "versions.keywords",
              "versions.summary",
              "versions.additionalInfo",
              "versions.content",
              "versions.structuredAuthoring",
              "versions.availabilityDate",
              "versions.expirationDate",
              "versions.label",
              "versions.imageUrl",
              "versions.attachments",
              "versions.articleType",
              "versions.translationStatus",
              "versions.availableEditions",
              "versions.personalization",
              "versions.ownedBy",
              "versions.isMajorUpdate",
              "versions.includeInGenAI"
            ]
          }
        },
        "description": "Additional Article attributes to include in the response. By default only attributes marked\nas required in the response schema are returned. Multiple attributes can be requested as a\ncomma-separated list of values.\n\nArticle-level attributes are requested directly by name, such as `department` or `notes`.\nVersion-level attributes are prefixed with `versions.`.\n",
        "style": "form",
        "explode": false,
        "example": [
          "versions.content",
          "versions.attachments",
          "notes"
        ]
      },
      "expandMacros": {
        "name": "expandMacros",
        "in": "query",
        "required": false,
        "description": "Controls whether macros embedded in the article content are expanded in the response.\n\nIf `true` and the article content is requested through\n`articleAdditionalAttributes=versions.content`, all macros in the returned article content\nare expanded. If `false`, the article content is returned with the macros unexpanded.\n\nThis parameter has no effect when the article content is not requested.\n",
        "schema": {
          "type": "boolean",
          "default": false
        },
        "example": true
      },
      "articleIds": {
        "name": "articleIDs",
        "description": "One or more article IDs, separated by commas. Each article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits. **Maximum of 75 article IDs allowed.**",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^([a-zA-Z0-9]{2,4}-\\d{4,15})(,[a-zA-Z0-9]{2,4}-\\d{4,15}){0,74}$",
          "minLength": 7,
          "maxLength": 1574,
          "example": "PROD-2268,PROD-2269"
        }
      },
      "articleAdditionalAttributesForGetByIds": {
        "name": "articleAdditionalAttributes",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "department",
              "created",
              "macro",
              "suggestionStatus",
              "articleReviewDetails",
              "lockedBy",
              "language",
              "notes",
              "relatedQuestions",
              "linkAlias",
              "customAttributes",
              "isPublishedVersionAvailable",
              "isPublishedVersionExpired",
              "isPublishedVersionScheduled",
              "isLatestVersionInDraft",
              "articleAction",
              "suggestionResolutionCode",
              "compliancePolicy",
              "versions.versionNumber",
              "versions.created",
              "versions.description",
              "versions.keywords",
              "versions.summary",
              "versions.additionalInfo",
              "versions.structuredAuthoring",
              "versions.availabilityDate",
              "versions.expirationDate",
              "versions.label",
              "versions.imageUrl",
              "versions.attachments",
              "versions.articleType",
              "versions.translationStatus",
              "versions.availableEditions",
              "versions.personalization",
              "versions.ownedBy",
              "versions.isMajorUpdate",
              "versions.includeInGenAI"
            ]
          }
        },
        "description": "Additional Article attributes to include in the response. By default only attributes marked\nas required in the response schema are returned. Multiple attributes can be requested as a\ncomma-separated list of values.\n\nArticle-level attributes are requested directly by name, such as `department` or `notes`.\nVersion-level attributes are prefixed with `versions.`.\n\nThe `versions.content` attribute is not supported on this API. Use the single-article\n`GET /article/{articleID}` API when article content is needed.\n",
        "style": "form",
        "explode": false,
        "example": [
          "versions.attachments",
          "versions.summary",
          "notes"
        ]
      },
      "articleIdInCSVPath": {
        "name": "articleIDs",
        "description": "The ID of a single Article.<br><br>An Article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits.",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
          "minLength": 7,
          "maxLength": 20,
          "example": "PROD-2996"
        }
      },
      "articleOperation": {
        "name": "operation",
        "in": "query",
        "required": true,
        "description": "The article authoring operation to perform.\n- `edit` — edit article content and metadata. The request body must include at least\n  one writable property.\n- `checkin` — check in the article, optionally with edits. Send `{}` to check in without\n  changing any fields.\n- `publish` — publish the article, optionally with edits. Send `{}` to publish without\n  changing any fields.\n",
        "schema": {
          "type": "string",
          "enum": [
            "edit",
            "checkin",
            "publish"
          ],
          "example": "edit"
        }
      }
    },
    "schemas": {
      "Hooks": {
        "type": "object",
        "properties": {
          "hooks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Hook"
            }
          }
        }
      },
      "Hook": {
        "type": "object",
        "required": [
          "type",
          "fileObject"
        ],
        "properties": {
          "hookID": {
            "type": "integer",
            "description": "ID of hook",
            "minimum": 1,
            "maximum": 999999999
          },
          "name": {
            "description": "Name of the hook.",
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^[\\w\\-\\s]+$"
          },
          "type": {
            "type": "string",
            "enum": [
              "import_pre_validation_hook",
              "import_post_validation_hook"
            ]
          },
          "fileObject": {
            "$ref": "#/components/schemas/FileObject"
          }
        }
      },
      "FileObjects": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/FileObject"
        },
        "minItems": 0,
        "maxItems": 20
      },
      "FileObject": {
        "type": "object",
        "properties": {
          "fileID": {
            "type": "string",
            "description": "ID of Hook File",
            "format": "uuid"
          },
          "createdDate": {
            "$ref": "#/components/schemas/createdDate"
          },
          "createdBy": {
            "$ref": "#/components/schemas/createdBy"
          },
          "modifiedDate": {
            "$ref": "#/components/schemas/modifiedDate"
          },
          "modifiedBy": {
            "$ref": "#/components/schemas/modifiedBy"
          },
          "version": {
            "type": "object",
            "properties": {
              "versionID": {
                "type": "integer",
                "description": "ID of Hook File version",
                "minimum": 1,
                "maximum": 999999999
              },
              "isCurrent": {
                "type": "boolean"
              }
            }
          },
          "file": {
            "type": "object",
            "required": [
              "name",
              "content"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Filename (e.g., script.js).",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^[\\w\\-\\.]+\\.js$"
              },
              "content": {
                "type": "string",
                "description": "Base64 encoded JavaScript content.",
                "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
                "maxLength": 1500000
              },
              "contentUrl": {
                "type": "string",
                "format": "uri",
                "minLength": 0,
                "maxLength": 2000,
                "pattern": "^(https?|ftp):\\/\\/[^\\s/$.?#].[^\\s]*$|^$"
              }
            }
          }
        }
      },
      "PromptTemplates": {
        "type": "object",
        "properties": {
          "promptTemplate": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromptTemplate"
            }
          }
        }
      },
      "PromptTemplate": {
        "type": "object",
        "required": [
          "name",
          "id",
          "description",
          "active",
          "useFor",
          "appliesTo",
          "instruction",
          "outputFormat",
          "createdOn",
          "modifiedDate",
          "createdBy",
          "reviewStatus",
          "isSystemCreated",
          "fieldToUpdate"
        ],
        "properties": {
          "name": {
            "type": "string",
            "example": "Generate Title",
            "description": "Name of the prompt template",
            "maxLength": 256,
            "pattern": "^[\\w\\W]*$"
          },
          "id": {
            "type": "string",
            "example": "PROD-26471",
            "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
            "minLength": 7,
            "maxLength": 20,
            "description": "ID of the prompt template from the AI console"
          },
          "description": {
            "type": "string",
            "example": "Generate article title based on article content",
            "minLength": 0,
            "maxLength": 256,
            "pattern": "^[\\w\\W]*$"
          },
          "active": {
            "type": "boolean",
            "example": true,
            "description": "A boolean showing whether a prompt is active or inactive."
          },
          "useFor": {
            "type": "string",
            "description": "Specifies which console the prompt applies to.\nAvailable values (may be extended in the future):\n- advisor\n- knowledge\n- knowledge-intelligence\n- knowledge-orchestration\n- custom\n"
          },
          "appliesTo": {
            "type": "string",
            "description": "The 'channel' for this prompt. If the `useFor` is set to 'knowledge' then article is used. If `useFor` is set to 'advisor', then either 'chat' or 'email' can be used.\nAvailable values (may be extended in the future):\n- article\n- chat\n- email\n",
            "pattern": "^[\\w\\W]*$"
          },
          "instruction": {
            "type": "string",
            "example": "I want you to generate...",
            "minLength": 1,
            "maxLength": 12000,
            "description": "The prompt instructions.",
            "pattern": "^(?=.*\\S).+$"
          },
          "outputFormat": {
            "type": "string",
            "example": "html",
            "pattern": "^[\\w\\W]*$",
            "description": "The output format for the generated output.\nAvailable values (may be extended in the future):\n- html\n- text\n"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time",
            "example": "2024-04-01T08:00:00Z",
            "minLength": 20,
            "maxLength": 25,
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$",
            "description": "Date and time when the prompt template was created."
          },
          "modifiedDate": {
            "type": "string",
            "format": "date-time",
            "example": "2024-04-30T17:30:00Z",
            "minLength": 20,
            "maxLength": 25,
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$",
            "description": "Date and time when the prompt was last updated."
          },
          "createdBy": {
            "$ref": "#/components/schemas/createdBy"
          },
          "reviewStatus": {
            "type": "string",
            "pattern": "^[\\w\\W]*$",
            "example": "published",
            "description": "Review status of the prompt.\nAvailable values (may be extended in the future):\n- published\n"
          },
          "isSystemCreated": {
            "type": "boolean",
            "example": false,
            "description": "A boolean showing whether the prompt template came out of the box or is a custom prompt."
          },
          "fieldToUpdate": {
            "type": "string",
            "description": "This will return the specified field to update once a user inserts the generated content.\nAvailable values (may be extended in the future):\n- title\n- content\n- keyword\n- description\n- summary\n- replyarea\n- notes\n- subject\n- classification\n\nIt can also return a custom attribute which will follow the following convention:\n\n`custom.<attributeType>.<customAttributeName>`\n",
            "pattern": "^[\\w\\W]*$",
            "minLength": 5,
            "maxLength": 64,
            "example": "custom.contactPerson.cust1"
          },
          "displayAt": {
            "type": "array",
            "description": "Specifies where the prompt will be displayed in the console.\nAvailable values (may be extended in the future):\n- article.content-area\n- article.metadata\n- article.fix-prompts\n- article.check-prompts\n",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "KnowledgeBaseLanguageCode": {
        "type": "string",
        "description": "Knowledge Console / knowledge-base locale code (BCP 47 style). Distinct from generic API languageCode enums elsewhere in this file.",
        "enum": [
          "ar-AE",
          "bg-BG",
          "cs-CZ",
          "da-DK",
          "de-AT",
          "de-DE",
          "el-GR",
          "en-GB",
          "en-US",
          "es-ES",
          "fi-FI",
          "fil-PH",
          "fr-CA",
          "fr-FR",
          "hi-IN",
          "hu-HU",
          "id-ID",
          "it-IT",
          "ja-JP",
          "ko-KR",
          "ms-MY",
          "nb-NO",
          "nl-NL",
          "nn-NO",
          "pl-PL",
          "pt-BR",
          "pt-PT",
          "ro-RO",
          "ru-RU",
          "sk-SK",
          "sl-SI",
          "sr-RS",
          "sv-SE",
          "th-TH",
          "tr-TR",
          "uk-UA",
          "vi-VN",
          "zh-Hans",
          "zh-Hant",
          "xx-XX"
        ],
        "example": "en-US"
      },
      "LoginLanguage": {
        "type": "string",
        "title": "Language",
        "description": "Login language code.",
        "enum": [
          "en-US",
          "en-GB",
          "es-ES",
          "fr-FR",
          "it-IT",
          "de-DE",
          "nl-NL",
          "pt-BR",
          "pt-PT",
          "da-DK",
          "ru-RU",
          "fr-CA",
          "zh-Hans",
          "ja-JP",
          "ko-KR",
          "sv-SE",
          "nb-NO",
          "cs-CZ",
          "pl-PL"
        ],
        "example": "en-US"
      },
      "Link": {
        "type": "object",
        "title": "Link",
        "description": "Defines the relationship between this resource and another object.",
        "properties": {
          "rel": {
            "description": "Defines the relationship between a linked resource and the current object—for example a resource type name such as *article* or *topic* as defined by the API for that link.",
            "type": "string",
            "pattern": "^[a-zA-Z]+$",
            "maxLength": 50
          },
          "href": {
            "description": "The URL that specifies the link's destination.",
            "type": "string",
            "pattern": "(\\/[^#]*)",
            "maxLength": 1000
          }
        }
      },
      "PaginationInfo": {
        "type": "object",
        "title": "PaginationInfo",
        "required": [
          "count",
          "pagenum",
          "pagesize"
        ],
        "properties": {
          "count": {
            "description": "The total number of items.",
            "type": "integer",
            "minimum": 0,
            "maximum": 999
          },
          "pagenum": {
            "description": "The page number requested. Page numbers start from 1.",
            "type": "integer",
            "minimum": 1,
            "maximum": 999
          },
          "pagesize": {
            "description": "The number of objects requested per page. The maximum number of objects per page is 75.",
            "type": "integer",
            "minimum": 1,
            "maximum": 75
          },
          "link": {
            "description": "Can include the *prev* and *next* link.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Link"
            },
            "maxItems": 2,
            "minItems": 0
          }
        }
      },
      "BasicUser": {
        "type": "object",
        "title": "User",
        "required": [
          "id",
          "userName"
        ],
        "properties": {
          "id": {
            "description": "The ID of the user.",
            "type": "string",
            "pattern": "^[1-9]\\d*$",
            "minLength": 1,
            "maxLength": 9
          },
          "userName": {
            "readOnly": true,
            "description": "The username of the user.",
            "type": "string",
            "pattern": "^[\\w\\-&@. ]*[\\w\\-&@.][\\w\\-&@. ]*$",
            "minLength": 1,
            "maxLength": 255
          },
          "firstName": {
            "readOnly": true,
            "description": "The first name of the user.",
            "type": "string",
            "pattern": "^(?!\\s*$)(?!.*[~`!#$%\\^*=\\[\\];\"|<>\\/?+\\{\\}]).*$",
            "minLength": 1,
            "maxLength": 255
          },
          "middleName": {
            "readOnly": true,
            "description": "The middle name of the user.",
            "type": "string",
            "pattern": "^$|^(?!.*[~`!#$%\\^*=\\[\\];\"|<>\\/?+\\{\\}])(\\s*\\S.*|)$",
            "minLength": 0,
            "maxLength": 255
          },
          "lastName": {
            "readOnly": true,
            "description": "The last name of the user.",
            "type": "string",
            "pattern": "^(?!\\s*$)(?!.*[~`!#$%\\^*=\\[\\];\"|<>\\/?+\\{\\}]).*$",
            "minLength": 1,
            "maxLength": 255
          }
        }
      },
      "DateAndUser": {
        "title": "DateAndUser",
        "type": "object",
        "required": [
          "date",
          "user"
        ],
        "properties": {
          "user": {
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/BasicUser"
              }
            ]
          },
          "date": {
            "title": "date",
            "description": "The date and time associated with this object.",
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$",
            "minLength": 20,
            "maxLength": 24
          }
        }
      },
      "BasicTopic": {
        "type": "object",
        "title": "Topic",
        "description": "Basic Topic object.",
        "properties": {
          "id": {
            "description": "The ID of the topic.",
            "type": "string",
            "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
            "minLength": 7,
            "maxLength": 20,
            "example": "KB-3102"
          },
          "name": {
            "readOnly": true,
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "description": "The display name of the topic."
          }
        }
      },
      "Department": {
        "type": "object",
        "description": "Department of the current resource.",
        "title": "Department",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^999$|^[1-9][0-9]{3,8}$",
            "example": "999",
            "minLength": 3,
            "maxLength": 9,
            "description": "The ID of the department."
          },
          "name": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_-]+$",
            "minLength": 1,
            "maxLength": 255,
            "description": "The name of the department.",
            "readOnly": true
          }
        }
      },
      "Language": {
        "title": "Language",
        "type": "object",
        "description": "The knowledge-base language for this resource.",
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "description": "The BCP 47 knowledge-base locale code.",
            "allOf": [
              {
                "$ref": "#/components/schemas/KnowledgeBaseLanguageCode"
              }
            ]
          },
          "label": {
            "description": "Human-readable language name in the current UI locale.",
            "type": "string",
            "pattern": "^[\\w\\W]+$",
            "minLength": 1,
            "maxLength": 510,
            "readOnly": true
          },
          "isDefault": {
            "description": "Indicates whether this language is the default Knowledge Base language.",
            "type": "boolean",
            "readOnly": true
          }
        }
      },
      "BasicArticle": {
        "type": "object",
        "title": "Article",
        "description": "Minimal article identity used as a cross-reference.",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "description": "The ID of the article.",
            "type": "string",
            "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
            "minLength": 7,
            "maxLength": 20,
            "example": "PROD-2996"
          },
          "name": {
            "description": "The name of the article.",
            "type": "string",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "minLength": 1,
            "maxLength": 255,
            "readOnly": true
          }
        }
      },
      "L10NString": {
        "type": "object",
        "title": "L10NString",
        "properties": {
          "value": {
            "title": "value",
            "description": "A string that indicates the value.",
            "type": "string",
            "minLength": 0,
            "maxLength": 255,
            "pattern": "^[\\w\\W]*$"
          },
          "displayValue": {
            "title": "displayValue",
            "description": "Localized string of the value element.",
            "type": "string",
            "minLength": 0,
            "maxLength": 255,
            "pattern": "^[\\w\\W]*$"
          }
        }
      },
      "CustomAttributeL10N": {
        "title": "CustomAttribute",
        "type": "object",
        "required": [
          "attribInternalName",
          "attribValues"
        ],
        "properties": {
          "attribInternalName": {
            "description": "The custom attribute's internal name.",
            "type": "string",
            "pattern": "^[\\w\\W]+$",
            "minLength": 1,
            "maxLength": 4000
          },
          "attribName": {
            "allOf": [
              {
                "description": "The custom attribute's name"
              },
              {
                "readOnly": true
              },
              {
                "$ref": "#/components/schemas/L10NString"
              }
            ]
          },
          "attribValues": {
            "type": "array",
            "description": "The custom attribute's values.",
            "minItems": 1,
            "items": {
              "type": "object",
              "title": "L10NString",
              "required": [
                "value"
              ],
              "properties": {
                "value": {
                  "title": "value",
                  "description": "A string that indicates the value.",
                  "type": "string",
                  "minLength": 0,
                  "maxLength": 255,
                  "pattern": "^[\\w\\W]*$"
                },
                "displayValue": {
                  "title": "displayValue",
                  "description": "Localized string of the value element.",
                  "type": "string",
                  "readOnly": true,
                  "minLength": 0,
                  "maxLength": 255,
                  "pattern": "^[\\w\\W]*$"
                }
              }
            }
          },
          "attribType": {
            "description": "The custom attribute's type.",
            "type": "string",
            "readOnly": true,
            "enum": [
              "string",
              "integer",
              "multi_select_list",
              "single_select_list",
              "datetime"
            ]
          }
        }
      },
      "Topic": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The ID of the topic. A topic ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits.",
            "type": "string",
            "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
            "minLength": 7,
            "maxLength": 20,
            "example": "KB-2268",
            "readOnly": true
          },
          "links": {
            "description": "Articles to associate with the topic. Use `rel: article` with the article's self-link in `href`. Multiple articles can be linked using multiple entries, or a comma-separated list of IDs in a single `href`. Not applicable to auto-generated topics (\"Topics From Folders\"), whose articles are controlled by the source folder.",
            "type": "array",
            "minItems": 0,
            "maxItems": 200,
            "writeOnly": true,
            "items": {
              "$ref": "#/components/schemas/Link"
            }
          },
          "unlinks": {
            "description": "Articles to disassociate from the topic. Use `rel: article` with the article's self-link in `href`. Multiple articles can be unlinked using multiple entries, or a comma-separated list of IDs in a single `href`. Not applicable to auto-generated topics (\"Topics From Folders\"), whose articles are controlled by the source folder.",
            "type": "array",
            "minItems": 0,
            "maxItems": 200,
            "items": {
              "$ref": "#/components/schemas/Link"
            }
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "description": "Display name of the topic. Must be unique among topics of the same language under the same parent topic, or, for a top-level topic, among the department's top-level topics. The same name in a different language is not a conflict."
          },
          "description": {
            "type": "string",
            "minLength": 0,
            "maxLength": 400,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "description": "Topic description"
          },
          "created": {
            "description": "Created date and created by user.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DateAndUser"
              }
            ]
          },
          "lastModified": {
            "description": "Last modified date of current topic.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DateAndUser"
              }
            ]
          },
          "parent": {
            "description": "Present only when the topic has a parent. For a top-level (root) topic the parent property is omitted from the response.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BasicTopic"
              }
            ]
          },
          "articleCount": {
            "description": "Number of articles in the topic.",
            "type": "integer",
            "readOnly": true
          },
          "department": {
            "description": "Department that topic belongs to.",
            "allOf": [
              {
                "$ref": "#/components/schemas/Department"
              }
            ]
          },
          "language": {
            "description": "The knowledge base language of the topic.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Language"
              }
            ]
          },
          "translateContent": {
            "type": "boolean",
            "default": false,
            "description": "Articles in this topic to be considered for translation when the content is exported for translation"
          },
          "subTopicCount": {
            "description": "Number of sub topics in this topic",
            "type": "integer",
            "minimum": 0,
            "maximum": 500,
            "readOnly": true
          },
          "path": {
            "type": "string",
            "readOnly": true,
            "description": "The absolute breadcrumb path of the topic: the names of the topic and all of its ancestor topics, from the root topic down to this topic, joined by backslashes (`\\`). The last segment is this topic's own name.",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "example": "Customer Support FAQ\\Billing Inquiries"
          },
          "imageUrl": {
            "type": "string",
            "description": "URL pointing to an icon or image representing the topic.",
            "pattern": "^$|^(?=.{10,})(https?|ftp):\\/\\/[^\\s/$.?#\"<>`][^\\s\"<>`]*$",
            "minLength": 0,
            "maxLength": 2000
          },
          "articleForTopicHomeContent": {
            "description": "The article assigned as the \"home content\" or landing page for this topic.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BasicArticle"
              }
            ]
          },
          "customAttributes": {
            "description": "Custom attributes assigned to the topic.",
            "type": "array",
            "minItems": 0,
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/CustomAttributeL10N"
            }
          },
          "generatedFromFolderId": {
            "type": "string",
            "readOnly": true,
            "description": "For an auto-generated topic (\"Topics From Folders\"), the ID of the Knowledge Console folder the topic was generated from and mirrors (including its sub-folders and published articles). Absent for topics created manually. The set of articles in an auto-generated topic is controlled by its source folder and cannot be changed through the Topic APIs.",
            "pattern": "^[1-9][0-9]*$",
            "minLength": 14,
            "maxLength": 19,
            "example": "40960000000096"
          }
        }
      },
      "GetTopic": {
        "title": "Topic",
        "allOf": [
          {
            "type": "object",
            "required": [
              "id",
              "name",
              "lastModified"
            ],
            "properties": {
              "unlinks": {
                "writeOnly": true
              }
            }
          },
          {
            "$ref": "#/components/schemas/Topic"
          }
        ]
      },
      "Topics": {
        "type": "object",
        "properties": {
          "paginationInfo": {
            "$ref": "#/components/schemas/PaginationInfo"
          },
          "topics": {
            "minItems": 0,
            "maxItems": 75,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetTopic"
            }
          }
        }
      },
      "WSErrorCommon": {
        "type": "object",
        "title": "Error Response",
        "required": [
          "code",
          "developerMessage"
        ],
        "properties": {
          "code": {
            "title": "Code Identifier",
            "description": "A string that follows the pattern *{integer}-{integer}*.\n\nThe first *{integer}* is the http status code.  This code as a whole is unique.\n* For example, error codes \"400-101\" and \"404-101\" are distinctly different.\n",
            "type": "string"
          },
          "developerMessage": {
            "title": "Developer Message",
            "description": "A summary of the error.",
            "type": "string",
            "minLength": 0,
            "maxLength": 2048
          },
          "details": {
            "title": "Response Details",
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "key"
              ],
              "properties": {
                "key": {
                  "title": "Key",
                  "type": "string",
                  "minLength": 0,
                  "maxLength": 255
                },
                "value": {
                  "title": "Value",
                  "type": "string",
                  "minLength": 0,
                  "maxLength": 255
                }
              }
            },
            "minItems": 0,
            "maxItems": 30
          },
          "userMessage": {
            "title": "User Message",
            "description": "UI friendly messages are only supported by some APIs.  \n  * The client must explicitly request UI friendly messages by passing the *X-egain-error-message=yes* header.\n",
            "type": "string",
            "minLength": 0,
            "maxLength": 1024
          }
        }
      },
      "CreateTopic": {
        "allOf": [
          {
            "type": "object",
            "required": [
              "name"
            ],
            "oneOf": [
              {
                "title": "Create a top-level topic",
                "description": "Create a top-level topic in a department",
                "required": [
                  "department"
                ],
                "properties": {
                  "department": {
                    "title": "Department",
                    "description": "Department that will own the new top-level topic.",
                    "type": "object",
                    "required": [
                      "id"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "ID of the department in which to create the top-level topic."
                      }
                    }
                  },
                  "parent": {
                    "readOnly": true
                  }
                }
              },
              {
                "title": "Create a topic under parent",
                "description": "Create a sub-topic under a parent topic",
                "required": [
                  "parent"
                ],
                "properties": {
                  "parent": {
                    "title": "Topic",
                    "type": "object",
                    "required": [
                      "id"
                    ],
                    "description": "Parent topic of the topic.",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "The ID of the parent topic.",
                        "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
                        "maxLength": 20
                      }
                    }
                  },
                  "department": {
                    "readOnly": true
                  }
                }
              }
            ],
            "properties": {
              "unlinks": {
                "readOnly": true
              },
              "customAttributes": {
                "description": "Custom attribute values for this topic. Each entry corresponds to an attribute definition that already exists in the system."
              }
            }
          },
          {
            "$ref": "#/components/schemas/Topic"
          }
        ]
      },
      "EditTopic": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "parent": {
                "readOnly": true
              },
              "department": {
                "readOnly": true
              },
              "customAttributes": {
                "description": "Custom attribute values for this topic. Each entry corresponds to an attribute definition that already exists in the system."
              }
            }
          },
          {
            "$ref": "#/components/schemas/Topic"
          }
        ]
      },
      "ArticleOrder": {
        "type": "object",
        "description": "The pinned article ordering for a topic. Only pinned articles appear here. A maximum of 25 articles can be pinned to each list. In a response, a list with nothing pinned is omitted.",
        "properties": {
          "topArticlesList": {
            "description": "Articles pinned to the top of the topic's list, in display order.",
            "type": "array",
            "minItems": 0,
            "maxItems": 25,
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/BasicArticle"
            }
          },
          "bottomArticlesList": {
            "description": "Articles pinned to the bottom of the topic's list, in display order.",
            "type": "array",
            "minItems": 0,
            "maxItems": 25,
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/BasicArticle"
            }
          }
        }
      },
      "GetArticleOrder": {
        "title": "ArticleOrder",
        "allOf": [
          {
            "type": "object",
            "minProperties": 1,
            "properties": {
              "topArticlesList": {
                "minItems": 1
              },
              "bottomArticlesList": {
                "minItems": 1
              }
            }
          },
          {
            "$ref": "#/components/schemas/ArticleOrder"
          }
        ]
      },
      "EditArticleOrder": {
        "title": "ArticleOrder",
        "allOf": [
          {
            "type": "object",
            "minProperties": 1,
            "properties": {
              "topArticlesList": {
                "description": "The complete desired top list to replace the existing top list. The order of entries is the display order — the first entry appears first. Supply an empty array to clear the list."
              },
              "bottomArticlesList": {
                "description": "The complete desired bottom list to replace the existing bottom list. The order of entries is the display order — the first entry appears first. Supply an empty array to clear the list."
              }
            }
          },
          {
            "$ref": "#/components/schemas/ArticleOrder"
          }
        ]
      },
      "LegacyKBLanguageCodes": {
        "type": "string",
        "title": "languageCode",
        "x-internal-note": "EGS-94064: Canonical list of legacy Knowledge Base locale codes used across Portal Manager and related APIs. Accepts both internal MLKB codes (e.g. ja-JA) and ISO BCP-47 alternates (e.g. ja-JP) where they refer to the same language. For all legacy APIs, this schema must be  referenced instead of duplicating the enum in individual API specs. NOTE: Do not use this schema for new APIs!! New APIs should use the standard ISO BCP-47 language codes instead.",
        "description": "The language of a resource. Resources available in different languages may differ from each other.",
        "example": "en-US",
        "enum": [
          "en-US",
          "fr-FR",
          "en-GB",
          "es-ES",
          "it-IT",
          "nl-NL",
          "da-DA",
          "sv-SE",
          "pt-PT",
          "fi-FI",
          "no-NB",
          "no-NN",
          "ja-JA",
          "de-DE",
          "pt-BR",
          "zh-CN",
          "zh-TW",
          "ko-KO",
          "ru-RU",
          "el-EL",
          "tr-TR",
          "pl-PL",
          "cs-CS",
          "sk-SK",
          "hu-HU",
          "sr-SR",
          "ar-SA",
          "hr-HR",
          "ro-RO",
          "th-TH",
          "de-AT",
          "vi-VN",
          "id-ID",
          "ms-MY",
          "fil-PH",
          "fr-CA",
          "hi-IN",
          "uk-UA",
          "bg-BG",
          "sl-SI",
          "da-DK",
          "nb-NO",
          "nn-NO",
          "ja-JP",
          "ko-KR",
          "el-GR",
          "cs-CZ",
          "sr-RS",
          "zh-Hans",
          "zh-Hant",
          "ar-AE",
          "xx-XX"
        ]
      },
      "createdBy": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The ID of the user that created this resource.",
            "type": "string",
            "pattern": "^[1-9]\\d*$",
            "minLength": 1,
            "maxLength": 8
          },
          "userName": {
            "type": "string",
            "description": "The resource creator's username.",
            "pattern": "^(?=(.*[a-zA-Z0-9_&@.\\-]){2,})[a-zA-Z0-9_&@.\\s\\-]+$",
            "minLength": 2,
            "maxLength": 255
          },
          "firstName": {
            "type": "string",
            "description": "The resource creator's first name.",
            "pattern": "^(?!\\s*$)(?!.*[~`!#$%\\^*=\\[\\];\"|<>\\/?+\\{\\}]).*$",
            "minLength": 1,
            "maxLength": 255
          },
          "middleName": {
            "type": "string",
            "description": "The resource creator's middle name.",
            "pattern": "^(?!.*[~`!#$%\\^*=\\[\\];\"|<>\\/?+\\{\\}])(\\s*\\S.*|)$",
            "minLength": 0,
            "maxLength": 255
          },
          "lastName": {
            "type": "string",
            "description": "The resource creator's last name.",
            "pattern": "^(?!\\s*$)(?!.*[~`!#$%\\^*=\\[\\];\"|<>\\/?+\\{\\}]).*$",
            "minLength": 1,
            "maxLength": 255
          }
        }
      },
      "BasicFolder": {
        "type": "object",
        "title": "Folder",
        "properties": {
          "id": {
            "description": "ID of folder.",
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "minLength": 14,
            "maxLength": 19
          },
          "name": {
            "readOnly": true,
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "description": "Folder name."
          }
        }
      },
      "BasicGroup": {
        "type": "object",
        "title": "Group",
        "description": "Minimal group identity used as a cross-reference.",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "description": "The ID of the group.",
            "type": "string",
            "pattern": "^[1-9]\\d*$",
            "minLength": 1,
            "maxLength": 9
          },
          "name": {
            "readOnly": true,
            "description": "The name of the group.",
            "type": "string",
            "pattern": "^[^~`!#$%\\\\^*=\\[\\];\"<>\\/?+{}]+$",
            "minLength": 1,
            "maxLength": 255
          },
          "description": {
            "readOnly": true,
            "description": "The description of the group.",
            "type": "string",
            "pattern": "^(?!\\s+$)(?:[^\\x00-\\x7F]|[\\sa-zA-Z0-9@|,()'&:._-])*$",
            "minLength": 0,
            "maxLength": 255
          }
        }
      },
      "IdentityPayload": {
        "title": "Identity",
        "description": "The identity the permissions apply to. Must be either a User or a Group.",
        "oneOf": [
          {
            "title": "User",
            "type": "object",
            "required": [
              "user"
            ],
            "properties": {
              "user": {
                "title": "User",
                "description": "The user to assign permissions to",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/BasicUser"
                  }
                ]
              }
            }
          },
          {
            "title": "Group",
            "type": "object",
            "required": [
              "group"
            ],
            "properties": {
              "group": {
                "title": "Group",
                "description": "The group to assign permissions to",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/BasicGroup"
                  }
                ]
              }
            }
          }
        ]
      },
      "FolderPermissionDetail": {
        "type": "object",
        "required": [
          "value",
          "isAssigned"
        ],
        "properties": {
          "value": {
            "type": "string",
            "description": "Permission for operation",
            "enum": [
              "own_folder",
              "view_folder",
              "create_folder",
              "delete_folder",
              "edit_folder",
              "create_article",
              "edit_article",
              "delete_article",
              "suggest_article",
              "manage_suggestions"
            ]
          },
          "isAssigned": {
            "type": "boolean",
            "description": "Indicates whether this permission is assigned to the identity. \nIn a request, `false` removes an existing assignment.\n"
          },
          "isExplicit": {
            "type": "boolean",
            "readOnly": true,
            "description": "Applies to user identities only. Indicates whether this permission was granted directly to the \nuser (`true`) rather than derived indirectly (`false`). A derived permission is one the user \ninherits through group membership or through propagation from a parent folder.\n"
          },
          "toPropagate": {
            "type": "boolean",
            "writeOnly": true,
            "description": "Set to true to propagate this permission to all children folders."
          }
        }
      },
      "FolderPermissionsEntry": {
        "title": "FolderPermission",
        "type": "object",
        "required": [
          "identity",
          "permission"
        ],
        "properties": {
          "identity": {
            "$ref": "#/components/schemas/IdentityPayload"
          },
          "permission": {
            "type": "array",
            "description": "The permissions granted to the identity.",
            "minItems": 1,
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/FolderPermissionDetail"
            }
          }
        }
      },
      "FolderPermissions": {
        "type": "array",
        "minItems": 1,
        "maxItems": 75,
        "description": "Folder permissions. Each entry lists the permissions that apply to an identity (a user or group).",
        "items": {
          "$ref": "#/components/schemas/FolderPermissionsEntry"
        }
      },
      "Folder": {
        "type": "object",
        "properties": {
          "id": {
            "description": "ID of folder",
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "minLength": 14,
            "maxLength": 19,
            "readOnly": true
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "description": "Display name of the folder. Must be unique among folders of the same language under the same parent folder, or, for a root-level folder, among the department's root-level folders. The same name in a different language is not a conflict."
          },
          "description": {
            "type": "string",
            "minLength": 0,
            "maxLength": 400,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "description": "Folder description"
          },
          "created": {
            "description": "Created date and created by user.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DateAndUser"
              }
            ]
          },
          "lastModified": {
            "description": "Last modified date of current folder.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DateAndUser"
              }
            ]
          },
          "parent": {
            "description": "Present only when the folder has a parent. For a root-level folder the parent property is omitted from the response.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BasicFolder"
              }
            ]
          },
          "articleCount": {
            "description": "Number of articles in the folder.",
            "type": "integer",
            "readOnly": true
          },
          "department": {
            "description": "Department that folder belongs to.",
            "allOf": [
              {
                "$ref": "#/components/schemas/Department"
              }
            ]
          },
          "language": {
            "description": "The knowledge base language of the folder.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Language"
              }
            ]
          },
          "translateContent": {
            "type": "boolean",
            "default": false,
            "description": "Articles in this folder to be considered for translation when the content is exported for translation"
          },
          "permissions": {
            "description": "Folder permissions.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FolderPermissions"
              }
            ]
          },
          "subFolderCount": {
            "description": "Number of sub folders in this folder",
            "type": "integer",
            "minimum": 0,
            "maximum": 500,
            "readOnly": true
          },
          "path": {
            "type": "string",
            "description": "Path of folder.",
            "readOnly": true
          },
          "isSystemCreated": {
            "description": "Indicates if folder was created by the system.",
            "type": "boolean",
            "readOnly": true
          }
        }
      },
      "GetFolder": {
        "title": "Folder",
        "allOf": [
          {
            "type": "object",
            "required": [
              "id",
              "name",
              "lastModified"
            ],
            "properties": {
              "permissions": {
                "description": "The current user's own permissions on this folder. Each entry's `identity` is always the current user.",
                "maxItems": 1
              }
            }
          },
          {
            "$ref": "#/components/schemas/Folder"
          }
        ]
      },
      "Folders": {
        "type": "object",
        "properties": {
          "paginationInfo": {
            "$ref": "#/components/schemas/PaginationInfo"
          },
          "folders": {
            "minItems": 0,
            "maxItems": 75,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetFolder"
            }
          }
        }
      },
      "CreateFolder": {
        "allOf": [
          {
            "type": "object",
            "required": [
              "name"
            ],
            "oneOf": [
              {
                "title": "Create a root-level folder",
                "description": "Create a root-level folder in a department",
                "required": [
                  "department"
                ],
                "properties": {
                  "department": {
                    "title": "Department",
                    "description": "Department that will own the new root-level folder.",
                    "type": "object",
                    "required": [
                      "id"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "ID of the department in which to create the root-level folder."
                      }
                    }
                  },
                  "parent": {
                    "readOnly": true
                  }
                }
              },
              {
                "title": "Create a folder under parent",
                "description": "Create a sub-folder under a parent folder",
                "required": [
                  "parent"
                ],
                "properties": {
                  "parent": {
                    "title": "Folder",
                    "type": "object",
                    "required": [
                      "id"
                    ],
                    "description": "Parent folder of the folder.",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "ID of the parent folder",
                        "pattern": "^[1-9][0-9]*$",
                        "maxLength": 19
                      }
                    }
                  },
                  "department": {
                    "readOnly": true
                  }
                }
              }
            ],
            "properties": {
              "permissions": {
                "description": "Permissions to grant to users or groups on the new folder."
              }
            }
          },
          {
            "$ref": "#/components/schemas/Folder"
          }
        ]
      },
      "EditFolder": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "parent": {
                "readOnly": true
              },
              "department": {
                "readOnly": true
              },
              "permissions": {
                "description": "Permissions to grant to or revoke from users or groups on the folder."
              }
            }
          },
          {
            "$ref": "#/components/schemas/Folder"
          }
        ]
      },
      "DataSourceCredentials": {
        "type": "object",
        "properties": {
          "accessKeyId": {
            "type": "string",
            "maxLength": 1024,
            "description": "Access key for S3 credentials datasource. Provide along with Secret Key."
          },
          "secretAccessKey": {
            "type": "string",
            "maxLength": 1024,
            "description": "Secret key for S3 credentials datasource. Provide along with Access Key."
          },
          "username": {
            "type": "string",
            "maxLength": 1024,
            "description": "Username for SFTP credentials datasource. Provide along with Password."
          },
          "password": {
            "type": "string",
            "maxLength": 1024,
            "description": "Password for SFTP credentials datasource. Provide along with Username."
          }
        }
      },
      "stopDateTime": {
        "type": "string",
        "description": "The specific date and time when the job must stop processing, regardless of completion status.",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
        "example": "2024-03-01T14:00:00.000Z"
      },
      "ImportContent": {
        "type": "object",
        "properties": {
          "dataSource": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of data source",
                "enum": [
                  "AWS S3 bucket",
                  "Shared file path"
                ]
              },
              "path": {
                "type": "string",
                "description": "Path of the data source",
                "format": "uri",
                "maxLength": 1024
              },
              "region": {
                "description": "Region of the data source",
                "type": "string",
                "maxLength": 20
              },
              "credentials": {
                "$ref": "#/components/schemas/DataSourceCredentials"
              }
            },
            "required": [
              "type",
              "path"
            ]
          },
          "operation": {
            "type": "string",
            "enum": [
              "import",
              "reimport"
            ]
          },
          "includeReport": {
            "type": "boolean",
            "default": false,
            "description": "When set to `true`, the service generates a structured import report on job conclusion detailing the resources created, updated, deleted, or failed along with their eGain-assigned IDs. The report's location is returned as `reportFolderLocation` on the Get Job Status response. Defaults to `false`, in which case no report is generated.\n"
          },
          "scheduleTime": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string",
                "description": "The scheduled start time for the import job.",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
                "example": "2024-03-01T10:00:00.000Z"
              },
              "stopDate": {
                "$ref": "#/components/schemas/stopDateTime"
              }
            },
            "required": [
              "date"
            ]
          }
        },
        "required": [
          "dataSource",
          "operation"
        ]
      },
      "createdDate": {
        "type": "string",
        "format": "DateAndTime",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$",
        "minLength": 20,
        "maxLength": 25,
        "description": "The date on which the resource was last modified."
      },
      "modifiedDate": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$",
        "minLength": 20,
        "maxLength": 25,
        "description": "The date on which the resource was last modified."
      },
      "modifiedBy": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The ID of the user that modified this resource.",
            "type": "string",
            "pattern": "^[1-9]\\d*$",
            "minLength": 1,
            "maxLength": 8
          },
          "userName": {
            "type": "string",
            "description": "The resource modifier's username.",
            "pattern": "^(?=(.*[a-zA-Z0-9_&@.\\-]){2,})[a-zA-Z0-9_&@.\\s\\-]+$",
            "minLength": 2,
            "maxLength": 255
          },
          "firstName": {
            "type": "string",
            "description": "The resource modifier's first name.",
            "pattern": "^(?!\\s*$)(?!.*[~`!#$%\\^*=\\[\\];\"|<>\\/?+\\{\\}]).*$",
            "minLength": 1,
            "maxLength": 255
          },
          "middleName": {
            "type": "string",
            "description": "The resource modifier's middle name.",
            "pattern": "^(?!.*[~`!#$%\\^*=\\[\\];\"|<>\\/?+\\{\\}])(\\s*\\S.*|)$",
            "minLength": 0,
            "maxLength": 255
          },
          "lastName": {
            "type": "string",
            "description": "The resource modifier's last name.",
            "pattern": "^(?!\\s*$)(?!.*[~`!#$%\\^*=\\[\\];\"|<>\\/?+\\{\\}]).*$",
            "minLength": 1,
            "maxLength": 255
          }
        }
      },
      "ImportStatus": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the job.",
            "enum": [
              "Scheduled",
              "In Progress",
              "Successful",
              "Failed",
              "Cancelled"
            ]
          },
          "subStatus": {
            "type": "string",
            "description": "Sub-Status of Status. <br> **Only returned when query parameter verbose=true**."
          },
          "statusReason": {
            "type": "string",
            "description": "Provides detailed context on why the job reached its current status. \nCommonly used with 'In-Progress' or 'Cancelled' statuses. <br> **Only returned when query parameter verbose=true.**\n",
            "example": "Job was paused due to the maximum job duration being reached."
          },
          "jobType": {
            "type": "string",
            "enum": [
              "Import",
              "Validation"
            ]
          },
          "progress": {
            "type": "object",
            "description": "Progress of the job.",
            "properties": {
              "processed": {
                "type": "number",
                "description": "Number of items processed.",
                "minimum": 0,
                "maximum": 100000
              },
              "total": {
                "type": "number",
                "description": "Number of total items to process.",
                "minimum": 0,
                "maximum": 100000
              },
              "percentage": {
                "type": "number",
                "description": "Percentage of total items that have been processed.",
                "minimum": 0,
                "maximum": 100
              }
            }
          },
          "logFileLocation": {
            "type": "string",
            "description": "Location of the job log file.",
            "maxLength": 1024
          },
          "reportFolderLocation": {
            "type": "string",
            "description": "Location of the import report folder. **Only returned when `includeReport=true` was provided on the Create Import Job request.** The report is written to the same data source the package was read from.\n\n**Examples:**\n\n* **For S3:** `\"s3://<bucket>/ingestion-execution/{packageId}_report/\"`\n* **For SFTP:** `\"sftp://<host>/ingestion-execution/{packageId}_report/\"`\n\nFor the report's structure and contents, see the [Ingestion API Overview](https://apidev.egain.com/developer-portal/guides/ingestion/ingestion-overview).\n",
            "maxLength": 1024
          },
          "startTime": {
            "type": "string",
            "description": "Start time of job.",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "example": "2024-03-01T10:00:00.000Z"
          },
          "scheduledStopTime": {
            "$ref": "#/components/schemas/stopDateTime"
          },
          "estimatedCompletion": {
            "type": "string",
            "description": "Estimated completion time of job.",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "example": "2024-03-01T10:00:00.000Z"
          },
          "currentOperation": {
            "type": "string",
            "description": "Current operation of job being processed.",
            "maxLength": 1024
          },
          "completionTime": {
            "type": "string",
            "format": "date-time",
            "description": "Completion time of job.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "example": "2024-03-01T10:00:00.000Z"
          },
          "failureTime": {
            "type": "string",
            "description": "Failure time of job.",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
            "example": "2024-03-01T10:00:00.000Z"
          },
          "results": {
            "type": "object",
            "description": "Result of job.",
            "properties": {
              "successful": {
                "type": "number",
                "description": "Number of item succesfully processed by job.",
                "minimum": 0,
                "maximum": 100000
              },
              "warnings": {
                "type": "number",
                "description": "Number of warnings encountered during job.",
                "minimum": 0,
                "maximum": 100000
              },
              "errors": {
                "description": "Number of errors encountered during job.",
                "type": "number",
                "minimum": 0,
                "maximum": 100000
              }
            }
          },
          "error": {
            "type": "string",
            "description": "Error of job.",
            "maxLength": 1024
          }
        },
        "required": [
          "status",
          "jobType"
        ]
      },
      "ValidateImportContent": {
        "type": "object",
        "properties": {
          "dataSource": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of data source",
                "enum": [
                  "AWS S3 bucket",
                  "Shared file path"
                ]
              },
              "path": {
                "type": "string",
                "description": "Path of the data source",
                "format": "uri"
              },
              "region": {
                "description": "Region of the data source",
                "type": "string"
              },
              "credentials": {
                "$ref": "#/components/schemas/DataSourceCredentials"
              }
            },
            "required": [
              "type",
              "path"
            ]
          }
        },
        "required": [
          "dataSource"
        ]
      },
      "StructuredAuthoringConfidenceLevel": {
        "title": "L10NString",
        "type": "object",
        "nullable": true,
        "description": "Stage of the article lifecycle indicating author confidence in readiness.\n\nOn Edit Article, send `null` to clear the confidence level. Omitting the property leaves\nthe current value unchanged.\n",
        "properties": {
          "value": {
            "type": "string",
            "description": "Supported values:\n- `work_in_progress`\n- `not_validated`\n- `validated`\n- `archived`\n\nAdditional values may be added in the future, so clients should handle unrecognized values gracefully.\n"
          },
          "displayValue": {
            "type": "string",
            "readOnly": true,
            "description": "Localized label for the confidence level, such as Work In Progress.",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$"
          }
        }
      },
      "StructuredAuthoring": {
        "type": "object",
        "nullable": true,
        "description": "This property is only applicable when structured authoring is enabled for the article type and department.\n",
        "properties": {
          "confidenceLevel": {
            "$ref": "#/components/schemas/StructuredAuthoringConfidenceLevel"
          },
          "environment": {
            "type": "string",
            "description": "Specifies the relevant product, category, or business process tied to the issue. The maximum size is 1 KB. The number of characters that fit depends on the language.",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$"
          },
          "issueDescription": {
            "type": "string",
            "description": "Describes the problem, symptom, or question the article addresses. The maximum size is 1 KB. The number of characters that fit depends on the language.",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$"
          },
          "issueCause": {
            "type": "string",
            "description": "Identifies the underlying cause of the issue. The maximum size is 1 KB. The number of characters that fit depends on the language.",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$"
          }
        }
      },
      "Attachment": {
        "type": "object",
        "minProperties": 1,
        "description": "A file attached to an article version.",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the attachment.",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19
          },
          "name": {
            "type": "string",
            "description": "The name of the attachment file including the extension.",
            "maxLength": 2000,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "readOnly": true
          },
          "mediaType": {
            "type": "string",
            "description": "Media type (MIME type) of the file, for example `image/png`.",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^[a-zA-Z0-9!#$&^_-]+/[a-zA-Z0-9!#$&^_.+-]+$",
            "readOnly": true
          },
          "contentUrl": {
            "type": "string",
            "description": "URL used to start the attachment download flow and obtain a short-lived signed URL to download the file bytes,\nfor example `https://api.egain.cloud/core/filemgr/v4/assets/predownload?signature=35674B764E7848586E786...`.\n",
            "maxLength": 2000,
            "pattern": "^https?:\\/\\/[^\\s/$.?#\"<>`][^\\s\"<>`]*$",
            "readOnly": true
          },
          "size": {
            "type": "integer",
            "description": "Attachment size in bytes.",
            "readOnly": true
          },
          "created": {
            "description": "Date and user who uploaded the attachment.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DateAndUser"
              }
            ]
          },
          "fileUploadId": {
            "type": "string",
            "description": "Identifier of a pre-uploaded file, returned by the File Manager\n[Generate URL to upload a file](../apis/v4/core/filemgr/api-bundled/storageservice/generatefilepreuploadurl)\nAPI.\n\nUpload the file before referencing it here. That API returns a `fileUploadId` together\nwith a short-lived signed `uploadUrl`; send the file bytes to the `uploadUrl`, then send\nthe `fileUploadId` in this property to attach the uploaded file to the article version.\n\nOnce attached, the file receives an attachment `id`, which is what identifies it on\nsubsequent edits. The `fileUploadId` has no further use.\n",
            "minLength": 36,
            "maxLength": 36,
            "writeOnly": true,
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
          }
        }
      },
      "ArticleType": {
        "type": "object",
        "required": [
          "id"
        ],
        "description": "Article type. Defaults to General during article creation if not provided.",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the article type.",
            "pattern": "^[1-9][0-9]*$",
            "minLength": 15,
            "maxLength": 19,
            "example": "932100000002020"
          },
          "name": {
            "type": "string",
            "description": "The name of the article type.",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "readOnly": true
          },
          "description": {
            "type": "string",
            "description": "Description of the article type.",
            "minLength": 0,
            "maxLength": 400,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "readOnly": true
          },
          "articleCategoryId": {
            "type": "integer",
            "description": "Article category ID.",
            "minimum": 0,
            "maximum": 7,
            "readOnly": true
          },
          "useStructuredAuthoring": {
            "type": "boolean",
            "description": "Whether structured authoring is enabled for this article type.",
            "readOnly": true
          },
          "imageUrl": {
            "type": "string",
            "description": "Image URL or path. Empty allowed.",
            "minLength": 0,
            "maxLength": 2000,
            "pattern": "^$|^\\S(.*\\S)?$",
            "readOnly": true
          },
          "isSearchable": {
            "type": "boolean",
            "description": "When true, this article type is searchable on portals.",
            "readOnly": true
          },
          "isDisplayable": {
            "type": "boolean",
            "description": "When true, this article type is included in portal browsing.",
            "readOnly": true
          },
          "isSystemCreated": {
            "type": "boolean",
            "description": "Whether the article type was created by the system.",
            "readOnly": true
          }
        }
      },
      "BasicPublishView": {
        "type": "object",
        "title": "PublishView",
        "properties": {
          "id": {
            "description": "The ID of the publish view.",
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19
          },
          "name": {
            "description": "The name of the publish view.",
            "type": "string",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "minLength": 1,
            "maxLength": 255
          }
        }
      },
      "Edition": {
        "type": "object",
        "description": "An article edition tied to a publish view from personalization.",
        "properties": {
          "id": {
            "description": "The ID of the edition.",
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19
          },
          "name": {
            "description": "The name of the edition.",
            "type": "string",
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$"
          },
          "isContentEdition": {
            "type": "boolean",
            "description": "Whether this edition contains article content."
          },
          "publishView": {
            "description": "The publish view that selects this edition.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BasicPublishView"
              }
            ]
          }
        }
      },
      "Tag": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "description": "The ID of the tag.",
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19
          },
          "name": {
            "description": "The name of the tag.",
            "type": "string",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "minLength": 1,
            "maxLength": 255,
            "readOnly": true
          }
        }
      },
      "TagGroup": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "description": "The ID of the tag group.",
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19
          },
          "name": {
            "description": "The name of the tag group.",
            "type": "string",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "minLength": 1,
            "maxLength": 100,
            "readOnly": true
          }
        }
      },
      "TagCategory": {
        "type": "object",
        "description": "A tag category groups tags and tag groups used for personalization.",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "description": "The ID of the tag category.",
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19
          },
          "name": {
            "description": "The name of the tag category.",
            "type": "string",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "minLength": 1,
            "maxLength": 100,
            "readOnly": true
          },
          "tags": {
            "type": "array",
            "description": "Tags selected in this category.",
            "items": {
              "$ref": "#/components/schemas/Tag"
            }
          },
          "tagGroups": {
            "type": "array",
            "description": "Tag groups selected in this category.",
            "items": {
              "$ref": "#/components/schemas/TagGroup"
            }
          }
        }
      },
      "PublishView": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "description": "The ID of the publish view.",
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19
          },
          "name": {
            "description": "The name of the publish view.",
            "type": "string",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "minLength": 1,
            "maxLength": 255,
            "readOnly": true
          },
          "tagCategories": {
            "type": "array",
            "description": "Tag categories for this publish view.",
            "maxItems": 20,
            "readOnly": true,
            "items": {
              "$ref": "#/components/schemas/TagCategory"
            }
          }
        }
      },
      "Personalization": {
        "type": "object",
        "nullable": true,
        "description": "Personalization controls article access, search filtering, and publish views.",
        "properties": {
          "accessTagCategories": {
            "type": "array",
            "description": "Tag categories that restrict visibility to matching users or groups.\n\nOn Edit Article, the supplied array replaces the current one in full — each supplied\ntag category is taken as complete, including its `tags` and `tagGroups`. To remove all\naccess tag categories, send an empty array (`[]`). Omitting the property leaves the\ncurrent value unchanged.\n",
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/TagCategory"
            }
          },
          "filterTagCategories": {
            "type": "array",
            "description": "Tag categories used to refine search when request tags or tag groups match.\n\nOn Edit Article, the supplied array replaces the current one in full — each supplied\ntag category is taken as complete, including its `tags` and `tagGroups`. To remove all\nfilter tag categories, send an empty array (`[]`). Omitting the property leaves the\ncurrent value unchanged.\n",
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/TagCategory"
            }
          },
          "publishViews": {
            "type": "array",
            "description": "Publish view for the article.\n\nOn Edit Article, the supplied array replaces the current one in full. To remove all\npublish views, send an empty array (`[]`). Omitting the property leaves the current\nvalue unchanged.\n",
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/PublishView"
            }
          }
        }
      },
      "Version": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the article version.",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19,
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "The name of the article in this version's language. Must be unique among articles of the same language in the same folder. The same name in a different language is not a conflict.",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$"
          },
          "versionNumber": {
            "type": "integer",
            "description": "The sequential version number of the article version.",
            "readOnly": true
          },
          "created": {
            "description": "Created date and created by user for this article version.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DateAndUser"
              }
            ]
          },
          "lastModified": {
            "description": "Last modified date and user for this article version.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DateAndUser"
              }
            ]
          },
          "description": {
            "type": "string",
            "description": "The article version's description. The maximum size is 1 KB. The number of characters that fit depends on the language.",
            "minLength": 0,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$"
          },
          "keywords": {
            "type": "string",
            "description": "The keywords for the version. The maximum size is 1 KB. The number of characters that fit depends on the language.",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$"
          },
          "summary": {
            "type": "string",
            "description": "A summary metadata of the version. The maximum size is 1 KB. The number of characters that fit depends on the language.",
            "minLength": 0,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$"
          },
          "additionalInfo": {
            "type": "string",
            "description": "Additional information for the version. The maximum size is 1 KB. The number of characters that fit depends on the language.",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$"
          },
          "content": {
            "type": "string",
            "description": "Raw HTML content of the current article's version. The maximum size is 2 MB. The number of characters that fit depends on the language.",
            "minLength": 0
          },
          "structuredAuthoring": {
            "$ref": "#/components/schemas/StructuredAuthoring"
          },
          "availabilityDate": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$",
            "description": "The date that the version becomes available, in UTC. Availability date must not be\nmore than 1 year into the future.\n",
            "example": "2026-04-15T09:00:00.000Z"
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$",
            "description": "The date that the version expires, in UTC. Expiration date must not be more than 5 years into the future.\n",
            "example": "2028-04-14T23:59:59.000Z"
          },
          "label": {
            "type": "string",
            "description": "Release summary for the version. On Article edits, this property is only allowed when the article is being published, otherwise it is rejected with `400`.",
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$"
          },
          "imageUrl": {
            "type": "string",
            "description": "Image URL (http, https, or ftp). Empty allowed. Min 10 characters when provided.",
            "minLength": 0,
            "maxLength": 2000,
            "pattern": "^$|^(?=.{10,})(https?|ftp):\\/\\/[^\\s/$.?#\"<>`][^\\s\"<>`]*$",
            "example": "https://www.example.com/images/kb/release-banner.png"
          },
          "attachments": {
            "type": "array",
            "description": "Attachments linked to this article version.",
            "items": {
              "$ref": "#/components/schemas/Attachment"
            }
          },
          "articleType": {
            "$ref": "#/components/schemas/ArticleType"
          },
          "articleState": {
            "type": "string",
            "description": "The lifecycle state of the article version.",
            "readOnly": true,
            "enum": [
              "published",
              "transient",
              "draft",
              "abandoned"
            ]
          },
          "translationStatus": {
            "type": "string",
            "description": "Translation status of the article version relative to its source language.",
            "readOnly": true,
            "enum": [
              "upto_date",
              "outdated"
            ]
          },
          "availableEditions": {
            "type": "array",
            "description": "Editions available for this version. Each edition corresponds to a publish view when the article is personalized. To retrieve edition content, use the Portal Manager [Get Article Edition Details](../apis/v4/knowledge/portalmgr/api-bundled/article/getarticleeditiondetails) API.",
            "readOnly": true,
            "items": {
              "$ref": "#/components/schemas/Edition"
            }
          },
          "personalization": {
            "$ref": "#/components/schemas/Personalization"
          },
          "ownedBy": {
            "title": "User",
            "description": "The user who owns the article. Defaults to the author.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BasicUser"
              }
            ]
          },
          "isMajorUpdate": {
            "type": "boolean",
            "description": "Whether this version is a major update. On Article edits, this property is only allowed when the article is being published, otherwise it is rejected with `400`."
          },
          "includeInGenAI": {
            "type": "boolean",
            "description": "Whether this version allows Generative AI to be used for Instant Answers."
          }
        }
      },
      "NullableBasicArticle": {
        "type": "object",
        "title": "Article",
        "nullable": true,
        "description": "Minimal article identity used as a cross-reference.",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "description": "The ID of the article.",
            "type": "string",
            "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
            "minLength": 7,
            "maxLength": 20,
            "example": "PROD-2996"
          },
          "name": {
            "description": "The name of the article.",
            "type": "string",
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "minLength": 1,
            "maxLength": 255,
            "readOnly": true
          }
        }
      },
      "Macro": {
        "type": "object",
        "nullable": true,
        "description": "Describes the Macro associated with the article. Macros are embeddable shortcuts to article \ncontent — they substitute lengthy or dynamic text with short values.\n",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40,
            "pattern": "^(?!.*[\\u0020<>\\\\,.?:;\"'!&/+#`]).*$",
            "description": "The macro name."
          },
          "isSystemCreated": {
            "type": "boolean",
            "description": "Whether the macro was created by the system.",
            "readOnly": true
          },
          "description": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "description": "Description of the macro."
          },
          "defaultValue": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "description": "Displayed when the macro expands and the source article has no content. Use as a short fallback for empty source content."
          },
          "fallbackArticle": {
            "description": "If expansion fails, show this article's published and available content instead of an\nerror. The user must have access to the folder containing the article.\n\nOn Edit Article, send `null` to remove the fallback article while keeping the macro\nitself. Omitting the property leaves the current fallback article unchanged.\n",
            "allOf": [
              {
                "$ref": "#/components/schemas/NullableBasicArticle"
              }
            ]
          }
        }
      },
      "SuggestionStatus": {
        "description": "Status of the suggestion. Applies only to article suggestions.",
        "allOf": [
          {
            "type": "object",
            "properties": {
              "value": {
                "type": "string",
                "description": "Suggestion workflow state. `suggested` (new), `pending` (under review), `declined`\n(rejected), or `approved` (accepted).\n",
                "enum": [
                  "suggested",
                  "pending",
                  "declined",
                  "approved"
                ]
              }
            }
          },
          {
            "$ref": "#/components/schemas/L10NString"
          }
        ]
      },
      "ReviewStage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the review stage.",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "description": "The name of the review stage."
          }
        }
      },
      "BasicWorkflow": {
        "type": "object",
        "title": "Workflow",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the workflow.",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "description": "The name of the workflow."
          }
        }
      },
      "ArticleReviewDetails": {
        "type": "object",
        "description": "Review and workflow information for the article.",
        "properties": {
          "currentReviewStage": {
            "description": "The current review stage for the article.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewStage"
              }
            ]
          },
          "previousReviewStage": {
            "description": "The previous review stage for the article.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewStage"
              }
            ]
          },
          "currentWorkflow": {
            "description": "The current workflow assigned to the article.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BasicWorkflow"
              }
            ]
          },
          "lastReviewedBy": {
            "description": "The user who most recently reviewed the article.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BasicUser"
              }
            ]
          }
        }
      },
      "BasicFolderForArticle": {
        "title": "Folder",
        "type": "object",
        "required": [
          "id"
        ],
        "description": "The folder this article belongs to.",
        "properties": {
          "id": {
            "description": "ID of folder.",
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "minLength": 14,
            "maxLength": 19
          },
          "name": {
            "readOnly": true,
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "description": "Folder name."
          }
        }
      },
      "CompliancePolicy": {
        "type": "object",
        "nullable": true,
        "title": "CompliancePolicy",
        "description": "Compliance policy associated with the article; defines when users must complete the Read & Sign for an article.",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19,
            "description": "The ID of the compliance policy."
          },
          "name": {
            "type": "string",
            "description": "The name of the compliance policy.",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "readOnly": true
          },
          "description": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "description": "Description of the compliance policy.",
            "readOnly": true
          },
          "sla": {
            "type": "integer",
            "minimum": 1,
            "description": "Service level agreement for compliance review, in days.",
            "readOnly": true
          },
          "created": {
            "description": "Created date and created by user.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DateAndUser"
              }
            ]
          },
          "lastModified": {
            "description": "Last modified date of current compliance policy.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DateAndUser"
              }
            ]
          }
        }
      },
      "Note": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the note.",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19,
            "readOnly": true
          },
          "content": {
            "type": "string",
            "description": "The note content. The maximum size is 1 KB. The number of characters that fit depends on the language.",
            "minLength": 1
          },
          "created": {
            "readOnly": true,
            "description": "Created date and created by user for the note.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DateAndUser"
              }
            ]
          }
        }
      },
      "ArticleAction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 19,
            "description": "The ID of the article action.",
            "readOnly": true
          },
          "casebase": {
            "type": "object",
            "title": "Casebase",
            "description": "Casebase for this Guided Help association.",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[1-9][0-9]*$",
                "maxLength": 19,
                "description": "The ID of the casebase."
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
                "description": "The casebase name.",
                "readOnly": true
              }
            }
          },
          "cluster": {
            "type": "object",
            "title": "Cluster",
            "description": "Cluster for this Guided Help association.",
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the cluster.",
                "pattern": "^[1-9][0-9]*$",
                "maxLength": 19
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
                "description": "The cluster name.",
                "readOnly": true
              }
            }
          },
          "guidedHelpProfile": {
            "type": "object",
            "title": "GuidedHelpProfile",
            "description": "The Guided Help profile for this association.",
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the Guided Help profile.",
                "pattern": "^[1-9][0-9]*$",
                "maxLength": 19,
                "example": "1"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
                "example": "system profile",
                "description": "The Guided Help profile name.",
                "readOnly": true
              }
            }
          },
          "isSearchable": {
            "type": "boolean",
            "description": "When true, this article is included in portal hybrid search results."
          }
        }
      },
      "SuggestionResolutionCode": {
        "description": "Resolution applied when a suggestion is closed. Applies only to article suggestions.",
        "allOf": [
          {
            "type": "object",
            "properties": {
              "value": {
                "type": "string",
                "description": "How a closed suggestion was resolved.\n",
                "enum": [
                  "accept",
                  "reject",
                  "duplicate"
                ]
              }
            }
          },
          {
            "$ref": "#/components/schemas/L10NString"
          }
        ]
      },
      "Article": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the article.",
            "pattern": "^[a-zA-Z0-9]{2,4}-\\d{4,15}$",
            "minLength": 7,
            "maxLength": 20,
            "example": "PROD-2996",
            "readOnly": true
          },
          "links": {
            "description": "Indicates the resource type being added to the article—for example, topic or related article. Accepted `rel` values are topic and article, respectively. The payload may use a comma-separated list of IDs in `href`, or multiple Links.",
            "type": "array",
            "minItems": 0,
            "maxItems": 200,
            "writeOnly": true,
            "items": {
              "$ref": "#/components/schemas/Link"
            }
          },
          "unlinks": {
            "description": "Indicates the resource type being removed from the current article—for example, topic or related article. Accepted `rel` values are topic and article, respectively. The payload may use a comma-separated list of IDs in `href`, or multiple Links.",
            "type": "array",
            "minItems": 0,
            "maxItems": 200,
            "items": {
              "$ref": "#/components/schemas/Link"
            }
          },
          "name": {
            "type": "string",
            "description": "The name of the article.",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$",
            "readOnly": true
          },
          "lastModified": {
            "description": "Last modified date and user for the article.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DateAndUser"
              }
            ]
          },
          "created": {
            "description": "Created date and created by user.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DateAndUser"
              }
            ]
          },
          "department": {
            "description": "Department the article belongs to.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Department"
              }
            ]
          },
          "macro": {
            "$ref": "#/components/schemas/Macro"
          },
          "suggestionStatus": {
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SuggestionStatus"
              }
            ]
          },
          "articleReviewDetails": {
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ArticleReviewDetails"
              }
            ]
          },
          "lockedBy": {
            "description": "User who currently has the article checked out, if any.",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/BasicUser"
              }
            ]
          },
          "language": {
            "$ref": "#/components/schemas/Language"
          },
          "folder": {
            "$ref": "#/components/schemas/BasicFolderForArticle"
          },
          "compliancePolicy": {
            "$ref": "#/components/schemas/CompliancePolicy"
          },
          "notes": {
            "type": "array",
            "maxItems": 200,
            "description": "Notes attached to the article.",
            "readOnly": true,
            "items": {
              "$ref": "#/components/schemas/Note"
            }
          },
          "relatedQuestions": {
            "description": "Related questions for the article.",
            "type": "array",
            "maxItems": 100,
            "items": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^(?!.*[^\\u0020-\\u003B\\u003D\\u003F-\\u005F\\u0061-\\u007E\\u00A0-\\uFFFF])(\\S.*\\S|\\S)?$"
            }
          },
          "linkAlias": {
            "type": "string",
            "description": "Alternate identifier for the article, used in article-to-article links within content.",
            "maxLength": 36,
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
            "readOnly": true
          },
          "customAttributes": {
            "type": "array",
            "description": "Custom attribute values for this article. Each entry corresponds to an attribute definition that already exists in the system.",
            "minItems": 0,
            "maxItems": 50,
            "items": {
              "$ref": "#/components/schemas/CustomAttributeL10N"
            }
          },
          "isPublishedVersionAvailable": {
            "type": "boolean",
            "description": "Whether the article has a published and available version.",
            "readOnly": true
          },
          "isPublishedVersionExpired": {
            "type": "boolean",
            "description": "Whether the article's published version is expired.",
            "readOnly": true
          },
          "isPublishedVersionScheduled": {
            "type": "boolean",
            "description": "Whether the article has a published version scheduled to become available.",
            "readOnly": true
          },
          "isLatestVersionInDraft": {
            "type": "boolean",
            "description": "Whether the latest version of the article is in draft state.",
            "readOnly": true
          },
          "articleAction": {
            "description": "Guided Help placements for this article. Each article action ties the article to a casebase, cluster, and profile so it participates in that guided help flow.",
            "type": "array",
            "readOnly": true,
            "items": {
              "$ref": "#/components/schemas/ArticleAction"
            }
          },
          "suggestionResolutionCode": {
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SuggestionResolutionCode"
              }
            ]
          }
        }
      },
      "GetArticleWithContent": {
        "allOf": [
          {
            "type": "object",
            "required": [
              "id",
              "name",
              "lastModified",
              "folder",
              "versions"
            ],
            "properties": {
              "unlinks": {
                "writeOnly": true
              },
              "versions": {
                "type": "array",
                "description": "Only one article version relevant to the current context is returned in this list.",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "allOf": [
                    {
                      "type": "object",
                      "required": [
                        "id",
                        "name",
                        "lastModified",
                        "articleState"
                      ],
                      "properties": {
                        "content": {
                          "description": "Raw HTML content of the article version.\n\nAn embedded inline image is returned as a tag carrying a generated `id`\nand a signed `src` that is valid for 30 minutes. \nSee **Inline images** in the operation description.\n"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/Version"
                    }
                  ]
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/Article"
          }
        ]
      },
      "GetArticleNoContent": {
        "title": "Article",
        "allOf": [
          {
            "type": "object",
            "required": [
              "id",
              "name",
              "lastModified",
              "folder",
              "versions"
            ],
            "properties": {
              "unlinks": {
                "writeOnly": true
              },
              "versions": {
                "type": "array",
                "description": "Only one article version relevant to the current context is returned in this list.",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "allOf": [
                    {
                      "type": "object",
                      "required": [
                        "id",
                        "name",
                        "lastModified",
                        "articleState"
                      ],
                      "properties": {
                        "content": {
                          "writeOnly": true
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/Version"
                    }
                  ]
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/Article"
          }
        ]
      },
      "Articles": {
        "type": "object",
        "properties": {
          "paginationInfo": {
            "$ref": "#/components/schemas/PaginationInfo"
          },
          "articles": {
            "type": "array",
            "minItems": 0,
            "items": {
              "$ref": "#/components/schemas/GetArticleNoContent"
            }
          }
        }
      },
      "EditArticle": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "versions": {
                "type": "array",
                "description": "Version object with the fields to update. Omitted version properties are left\nunchanged.\n",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "attachments": {
                          "description": "Article attachments.\n\nThe supplied array replaces the current one in full. Reference an\nattachment that should remain by its `id`, and add a newly uploaded file\nby its `fileUploadId`. Each entry uses one form or the other; supplying\nboth `id` and `fileUploadId`, or neither, is rejected with `400` response. \nAny attachment not referenced in the array is removed from the version. \nTo remove all attachments, send an empty array (`[]`). Omitting the property \nleaves the current attachments unchanged.\n"
                        },
                        "content": {
                          "description": "Raw HTML content of the article version. The maximum size is 2 MB. The\nnumber of characters that fit depends on the language.\n\nThe supplied content replaces the current one in full and is authoritative\nfor the version's inline images. Keep an existing image by leaving its\n`<img id=\"…\">` tag in place, add one by putting a pre-uploaded\n`fileUploadId` on the tag, and remove one by dropping its tag. A tag\ncarrying both `id` and `fileUploadId` is rejected with `400` response. See\n**Inline images** in the operation description. Omitting the property\nleaves the current content unchanged.\n"
                        },
                        "expirationDate": {
                          "description": "The date that the version expires, in UTC. Expiration date must not be more\nthan 5 years into the future.\n\nTo remove the expiration date, so that the version does not expire, send\n`null`. Omitting the property leaves the current expiration date unchanged.\n"
                        },
                        "structuredAuthoring": {
                          "description": "This property is only applicable when structured authoring is enabled for the\narticle type and department.\n\nTo remove structured authoring details from the version, send `null`. This\nclears `confidenceLevel`, `environment`, `issueDescription`, and `issueCause`\ntogether. Omitting the property leaves the current details unchanged.\n"
                        },
                        "personalization": {
                          "description": "Personalization controls article access, search filtering, and publish views.\n\nTo unassign personalization from the article, send `null`. This clears\n`accessTagCategories`, `filterTagCategories`, and `publishViews` together.\nOmitting the property leaves the current personalization unchanged.\n"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/Version"
                    }
                  ]
                }
              },
              "macro": {
                "description": "Macros are embeddable shortcuts to article content — they substitute lengthy or dynamic text with\nshort values. If a new macro is created while editing an article, the `name` field is required.\n\nTo unassign the macro from the article, send `null`. Omitting the property leaves the\ncurrent macro unchanged.\n"
              },
              "compliancePolicy": {
                "description": "Compliance policy associated with the article; defines when users must complete the\nRead & Sign for an article.\n\nTo remove the compliance policy from the article, send `null`. Omitting the property\nleaves the current compliance policy unchanged.\n"
              },
              "relatedQuestions": {
                "description": "Related questions for the article.\n\nThe supplied array replaces the current list in full. To add or remove individual\nquestions, send the complete list as it should read after the edit.\nTo remove all related questions, send an empty array (`[]`). Omitting the\nproperty leaves the current list unchanged.\n"
              },
              "customAttributes": {
                "description": "Custom attribute values for this article. Each entry corresponds to an attribute\ndefinition that already exists in the system.\n\nThe supplied array replaces the current set in full. To unassign the values of an\nindividual custom attribute, send the array containing only the attributes that\nshould remain. To unassign the values of every custom attribute at once, send an\nempty array (`[]`). Omitting the property leaves the current custom attributes\nunchanged.\n\n`attribValues` requires at least one value, so an individual attribute's values\ncannot be cleared by sending it with an empty `attribValues` array. Omit that\nattribute from the supplied `customAttributes` array instead.\n"
              },
              "language": {
                "readOnly": true
              },
              "folder": {
                "readOnly": true
              }
            }
          },
          {
            "$ref": "#/components/schemas/Article"
          }
        ]
      },
      "CreateArticleAttachment": {
        "title": "Attachment",
        "allOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "readOnly": true
              }
            }
          },
          {
            "$ref": "#/components/schemas/Attachment"
          }
        ]
      },
      "CreateVersion": {
        "title": "Version",
        "allOf": [
          {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "isMajorUpdate": {
                "readOnly": true
              },
              "label": {
                "readOnly": true
              },
              "content": {
                "description": "Raw HTML content of the article version. The maximum size is 2 MB. The number of\ncharacters that fit depends on the language.\n\nTo embed an image, pre-upload it as an inline image and place the returned\n`fileUploadId` as an attribute on the tag that renders the image — for example,\n`<img fileUploadId=\"c1f0a3d2-9b47-4e15-8a6c-2d7e5f4b8091\" />`. See **Inline images**\nin the operation description.\n"
              },
              "attachments": {
                "description": "Article attachments. Use this to add new attachments to the article.\nOnly `fileUploadId` is accepted on Create.\n",
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CreateArticleAttachment"
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/Version"
          }
        ]
      },
      "CreateArticle": {
        "allOf": [
          {
            "type": "object",
            "required": [
              "folder",
              "language",
              "versions"
            ],
            "properties": {
              "language": {
                "description": "The source language of the article: the knowledge base language in which the supplied\n`versions` content is authored. The article itself is created in every enabled knowledge\nbase language. Must be one of the enabled Knowledge Base languages.\n",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Language"
                  }
                ]
              },
              "versions": {
                "type": "array",
                "description": "Article version to create.",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "$ref": "#/components/schemas/CreateVersion"
                }
              },
              "macro": {
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {}
                }
              },
              "unlinks": {
                "readOnly": true
              }
            }
          },
          {
            "$ref": "#/components/schemas/Article"
          }
        ]
      }
    },
    "responses": {
      "GetTopicsResponse": {
        "description": "Success",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Topics"
            },
            "examples": {
              "Default Attributes": {
                "summary": "Topics of a department; summary attributes",
                "description": "Request: `GET /knowledge/contentmgr/v4/topics?$lang=en-US&departmentId=1005&$pagenum=1&$pagesize=10`",
                "value": {
                  "paginationInfo": {
                    "count": 2,
                    "pagenum": 1,
                    "pagesize": 10
                  },
                  "topics": [
                    {
                      "id": "KB-3102",
                      "name": "Customer Support FAQ",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      }
                    },
                    {
                      "id": "KB-3103",
                      "name": "Product Documentation",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      }
                    }
                  ]
                }
              },
              "All Attributes": {
                "summary": "Topics under a parent; all attributes",
                "description": "Request: `GET /knowledge/contentmgr/v4/topics?$lang=en-US&parentId=KB-3102&topicAdditionalAttributes=created,description,department,translateContent,articleCount,...&$pagenum=1&$pagesize=10`",
                "value": {
                  "paginationInfo": {
                    "count": 1,
                    "pagenum": 1,
                    "pagesize": 10
                  },
                  "topics": [
                    {
                      "id": "KB-2268",
                      "name": "Billing Inquiries",
                      "description": "Topic for billing related questions.",
                      "created": {
                        "date": "2024-01-05T09:00:00.000Z",
                        "user": {
                          "id": "1004",
                          "userName": "john.roe",
                          "firstName": "John",
                          "middleName": "Michael",
                          "lastName": "Roe"
                        }
                      },
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      },
                      "parent": {
                        "id": "KB-3102",
                        "name": "Customer Support FAQ"
                      },
                      "articleCount": 12,
                      "department": {
                        "id": "1005",
                        "name": "Service"
                      },
                      "language": {
                        "code": "en-US",
                        "label": "English (US)",
                        "isDefault": true
                      },
                      "translateContent": true,
                      "subTopicCount": 2,
                      "path": "Customer Support FAQ\\Billing Inquiries",
                      "imageUrl": "https://cdn.example.com/icons/billing.png",
                      "articleForTopicHomeContent": {
                        "id": "PROD-2996",
                        "name": "How to update billing details"
                      },
                      "customAttributes": [
                        {
                          "attribInternalName": "priority",
                          "attribName": {
                            "value": "Priority",
                            "displayValue": "Priority"
                          },
                          "attribValues": [
                            {
                              "value": "High",
                              "displayValue": "High"
                            }
                          ],
                          "attribType": "single_select_list"
                        }
                      ],
                      "generatedFromFolderId": "40960000000096"
                    }
                  ]
                }
              },
              "With Level": {
                "summary": "Topics in a portal; flat list of two hierarchy levels",
                "description": "Request: `GET /knowledge/contentmgr/v4/topics?$lang=en-US&portalId=PROD-1002&$level=1&$pagenum=1&$pagesize=10`",
                "value": {
                  "paginationInfo": {
                    "count": 3,
                    "pagenum": 1,
                    "pagesize": 10
                  },
                  "topics": [
                    {
                      "id": "KB-3102",
                      "name": "Customer Support FAQ",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      }
                    },
                    {
                      "id": "KB-3103",
                      "name": "Product Documentation",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      }
                    },
                    {
                      "id": "KB-2268",
                      "name": "Billing Inquiries",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      },
                      "parent": {
                        "id": "KB-3102",
                        "name": "Customer Support FAQ"
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "400_common_bad_request": {
        "description": "Bad Request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Required Attribute missing": {
                "$ref": "#/components/examples/Required_Attribute_Missing"
              },
              "Unallowed attribute value": {
                "$ref": "#/components/examples/Unallowed_Attribute_Value"
              }
            }
          }
        }
      },
      "401_invalid_authorization": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Invalid Authorization": {
                "$ref": "#/components/examples/Invalid_Authorization"
              }
            }
          }
        }
      },
      "403_forbidden": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Required Scope Missing": {
                "$ref": "#/components/examples/Scope_Not_Assigned"
              }
            }
          }
        }
      },
      "NotAcceptable": {
        "description": "Not acceptable",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Not Acceptable": {
                "$ref": "#/components/examples/NotAcceptable"
              }
            }
          }
        }
      },
      "TooManyRequest": {
        "description": "Too Many Request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Too Many Request": {
                "$ref": "#/components/examples/Too_Many_Request"
              }
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Internal Server Error": {
                "$ref": "#/components/examples/InternalServerError"
              }
            }
          }
        }
      },
      "409_duplicate_name": {
        "description": "Conflict",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "duplicate name": {
                "$ref": "#/components/examples/duplicate_name"
              }
            }
          }
        }
      },
      "422_unprocessable_content": {
        "description": "Unprocessable content",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "unprocessable content": {
                "$ref": "#/components/examples/unprocessable_content"
              }
            }
          }
        }
      },
      "GetTopicsByIdsResponse": {
        "description": "Success. The `ETag` response header is only included when a single topic ID is requested.",
        "headers": {
          "ETag": {
            "$ref": "#/components/headers/eTag"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Topics"
            },
            "examples": {
              "With Level": {
                "summary": "Flat list of two hierarchy levels; summary attributes",
                "description": "Request: `GET /knowledge/contentmgr/v4/topics/KB-3102,KB-3103?$lang=en-US&$level=1&$pagenum=1&$pagesize=10`",
                "value": {
                  "paginationInfo": {
                    "count": 3,
                    "pagenum": 1,
                    "pagesize": 10
                  },
                  "topics": [
                    {
                      "id": "KB-3102",
                      "name": "Customer Support FAQ",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      }
                    },
                    {
                      "id": "KB-3103",
                      "name": "Product Documentation",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      }
                    },
                    {
                      "id": "KB-2268",
                      "name": "Billing Inquiries",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      },
                      "parent": {
                        "id": "KB-3102",
                        "name": "Customer Support FAQ"
                      }
                    }
                  ]
                }
              },
              "All Attributes": {
                "summary": "A single topic; all attributes",
                "description": "Request: `GET /knowledge/contentmgr/v4/topics/KB-2268?$lang=en-US&topicAdditionalAttributes=created,description,department,translateContent,articleCount,...&$pagenum=1&$pagesize=10`",
                "value": {
                  "paginationInfo": {
                    "count": 1,
                    "pagenum": 1,
                    "pagesize": 10
                  },
                  "topics": [
                    {
                      "id": "KB-2268",
                      "name": "Billing Inquiries",
                      "description": "Topic for billing related questions.",
                      "created": {
                        "date": "2024-01-05T09:00:00.000Z",
                        "user": {
                          "id": "1004",
                          "userName": "john.roe",
                          "firstName": "John",
                          "middleName": "Michael",
                          "lastName": "Roe"
                        }
                      },
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      },
                      "parent": {
                        "id": "KB-3102",
                        "name": "Customer Support FAQ"
                      },
                      "articleCount": 12,
                      "department": {
                        "id": "1005",
                        "name": "Service"
                      },
                      "language": {
                        "code": "en-US",
                        "label": "English (US)",
                        "isDefault": true
                      },
                      "translateContent": true,
                      "subTopicCount": 2,
                      "path": "Customer Support FAQ\\Billing Inquiries",
                      "imageUrl": "https://cdn.example.com/icons/billing.png",
                      "articleForTopicHomeContent": {
                        "id": "PROD-2996",
                        "name": "How to update billing details"
                      },
                      "customAttributes": [
                        {
                          "attribInternalName": "priority",
                          "attribName": {
                            "value": "Priority",
                            "displayValue": "Priority"
                          },
                          "attribValues": [
                            {
                              "value": "High",
                              "displayValue": "High"
                            }
                          ],
                          "attribType": "single_select_list"
                        }
                      ],
                      "generatedFromFolderId": "40960000000096"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "404_common_not_found": {
        "description": "Not Found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Resource Not Found": {
                "$ref": "#/components/examples/Resource_Not_Found"
              }
            }
          }
        }
      },
      "412_precondition_failed": {
        "description": "Preconditions failed",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "precondition failed": {
                "$ref": "#/components/examples/precondition_failed"
              }
            }
          }
        }
      },
      "ArticleOrderResponse": {
        "description": "Success. The body carries whichever of the two lists have pinned articles; a list with nothing pinned is omitted. The `ETag` response header carries the current version of the topic identified in the URI. A topic and its article order share a single ETag, so this value can be supplied as `If-Match` when subsequently updating either the topic or its article order.",
        "headers": {
          "ETag": {
            "$ref": "#/components/headers/eTag"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/GetArticleOrder"
            },
            "examples": {
              "Article Order": {
                "summary": "Top and bottom ordered lists for a topic.",
                "description": "Request: `GET /knowledge/contentmgr/v4/topics/KB-2268/articleorder`",
                "value": {
                  "topArticlesList": [
                    {
                      "id": "PROD-2996",
                      "name": "How to update billing details"
                    },
                    {
                      "id": "PROD-2997",
                      "name": "Understanding your invoice"
                    }
                  ],
                  "bottomArticlesList": [
                    {
                      "id": "PROD-3050",
                      "name": "Deprecated billing FAQ"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "NoContent": {
        "description": "No content"
      },
      "BadRequest": {
        "description": "Bad Request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Unsupported Parameters": {
                "$ref": "#/components/examples/UnsupportedParameters"
              },
              "Invalid Value": {
                "$ref": "#/components/examples/InvalidValue"
              },
              "Missing required query parameter": {
                "$ref": "#/components/examples/MissingParameter"
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Unauthorized": {
                "$ref": "#/components/examples/Unauthorized"
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Forbidden": {
                "$ref": "#/components/examples/Forbidden"
              }
            }
          }
        }
      },
      "NotFound": {
        "description": "Not Found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Not found": {
                "$ref": "#/components/examples/NotFound"
              }
            }
          }
        }
      },
      "responses-NotAcceptable": {
        "description": "Not Acceptable",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Invalid Accept-Language": {
                "$ref": "#/components/examples/InvalidAcceptLanguage"
              }
            }
          }
        }
      },
      "GetFoldersResponse": {
        "description": "Success",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Folders"
            },
            "examples": {
              "All Attributes": {
                "summary": "Root-level folders of a department; all attributes",
                "description": "Request: `GET /knowledge/contentmgr/v4/folders?$lang=en-US&departmentId=1000&folderAdditionalAttributes=created,description,department,translateContent,permissions,articleCount,...&$pagenum=1&$pagesize=10`",
                "value": {
                  "paginationInfo": {
                    "count": 2,
                    "pagenum": 1,
                    "pagesize": 10
                  },
                  "folders": [
                    {
                      "id": "20240000000122",
                      "name": "Operations",
                      "description": "Root folder for operational procedures.",
                      "created": {
                        "date": "2024-01-05T09:00:00.000Z",
                        "user": {
                          "id": "1004",
                          "userName": "john.roe",
                          "firstName": "John",
                          "middleName": "Michael",
                          "lastName": "Roe"
                        }
                      },
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      },
                      "articleCount": 8,
                      "department": {
                        "id": "1000",
                        "name": "Service"
                      },
                      "language": {
                        "code": "en-US",
                        "label": "English (US)",
                        "isDefault": true
                      },
                      "translateContent": true,
                      "permissions": [
                        {
                          "identity": {
                            "user": {
                              "id": "1005",
                              "userName": "jane.doe",
                              "firstName": "Jane",
                              "middleName": "Anne",
                              "lastName": "Doe"
                            }
                          },
                          "permission": [
                            {
                              "value": "own_folder",
                              "isExplicit": true,
                              "isAssigned": false
                            },
                            {
                              "value": "view_folder",
                              "isExplicit": true,
                              "isAssigned": true
                            },
                            {
                              "value": "create_folder",
                              "isExplicit": true,
                              "isAssigned": true
                            },
                            {
                              "value": "delete_folder",
                              "isExplicit": true,
                              "isAssigned": false
                            },
                            {
                              "value": "edit_folder",
                              "isExplicit": true,
                              "isAssigned": true
                            },
                            {
                              "value": "create_article",
                              "isExplicit": false,
                              "isAssigned": true
                            },
                            {
                              "value": "edit_article",
                              "isExplicit": false,
                              "isAssigned": true
                            },
                            {
                              "value": "delete_article",
                              "isExplicit": false,
                              "isAssigned": false
                            },
                            {
                              "value": "suggest_article",
                              "isExplicit": false,
                              "isAssigned": true
                            },
                            {
                              "value": "manage_suggestions",
                              "isExplicit": false,
                              "isAssigned": false
                            }
                          ]
                        }
                      ],
                      "subFolderCount": 1,
                      "path": "Operations",
                      "isSystemCreated": false
                    },
                    {
                      "id": "20240000000125",
                      "name": "Customer Support",
                      "description": "Root folder for customer support content.",
                      "created": {
                        "date": "2024-01-05T09:00:00.000Z",
                        "user": {
                          "id": "1004",
                          "userName": "john.roe",
                          "firstName": "John",
                          "middleName": "Michael",
                          "lastName": "Roe"
                        }
                      },
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      },
                      "articleCount": 24,
                      "department": {
                        "id": "1000",
                        "name": "Service"
                      },
                      "language": {
                        "code": "en-US",
                        "label": "English (US)",
                        "isDefault": true
                      },
                      "translateContent": true,
                      "permissions": [
                        {
                          "identity": {
                            "user": {
                              "id": "1005",
                              "userName": "jane.doe",
                              "firstName": "Jane",
                              "middleName": "Anne",
                              "lastName": "Doe"
                            }
                          },
                          "permission": [
                            {
                              "value": "own_folder",
                              "isExplicit": true,
                              "isAssigned": false
                            },
                            {
                              "value": "view_folder",
                              "isExplicit": true,
                              "isAssigned": true
                            },
                            {
                              "value": "create_folder",
                              "isExplicit": true,
                              "isAssigned": true
                            },
                            {
                              "value": "delete_folder",
                              "isExplicit": true,
                              "isAssigned": false
                            },
                            {
                              "value": "edit_folder",
                              "isExplicit": true,
                              "isAssigned": true
                            },
                            {
                              "value": "create_article",
                              "isExplicit": false,
                              "isAssigned": true
                            },
                            {
                              "value": "edit_article",
                              "isExplicit": false,
                              "isAssigned": true
                            },
                            {
                              "value": "delete_article",
                              "isExplicit": false,
                              "isAssigned": false
                            },
                            {
                              "value": "suggest_article",
                              "isExplicit": false,
                              "isAssigned": true
                            },
                            {
                              "value": "manage_suggestions",
                              "isExplicit": false,
                              "isAssigned": false
                            }
                          ]
                        }
                      ],
                      "subFolderCount": 0,
                      "path": "Customer Support",
                      "isSystemCreated": false
                    }
                  ]
                }
              },
              "With Level": {
                "summary": "Flat list of two hierarchy levels; summary attributes",
                "description": "Request: `GET /knowledge/contentmgr/v4/folders?$lang=en-US&departmentId=1000&$level=1&$pagenum=1&$pagesize=10`",
                "value": {
                  "paginationInfo": {
                    "count": 3,
                    "pagenum": 1,
                    "pagesize": 10
                  },
                  "folders": [
                    {
                      "id": "20240000000122",
                      "name": "Operations",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      }
                    },
                    {
                      "id": "20240000000125",
                      "name": "Customer Support",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      }
                    },
                    {
                      "id": "20240000000123",
                      "name": "IT Infrastructure",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      },
                      "parent": {
                        "id": "20240000000122",
                        "name": "Operations"
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "GetFoldersByIdsResponse": {
        "description": "Success. The `ETag` response header is only included when a single folder ID is requested.",
        "headers": {
          "ETag": {
            "$ref": "#/components/headers/eTag"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Folders"
            },
            "examples": {
              "With Level": {
                "summary": "Flat list of two hierarchy levels; summary attributes",
                "description": "Request: `GET /knowledge/contentmgr/v4/folders/20240000000123,20240000000125?$lang=en-US&$level=1&$pagenum=1&$pagesize=10`",
                "value": {
                  "paginationInfo": {
                    "count": 4,
                    "pagenum": 1,
                    "pagesize": 10
                  },
                  "folders": [
                    {
                      "id": "20240000000123",
                      "name": "IT Infrastructure",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      },
                      "parent": {
                        "id": "20240000000122",
                        "name": "Operations"
                      }
                    },
                    {
                      "id": "20240000000125",
                      "name": "Customer Support",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      }
                    },
                    {
                      "id": "20240000000888",
                      "name": "Security Protocols",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      },
                      "parent": {
                        "id": "20240000000123",
                        "name": "IT Infrastructure"
                      }
                    },
                    {
                      "id": "20240000000889",
                      "name": "Security Procedures",
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      },
                      "parent": {
                        "id": "20240000000123",
                        "name": "IT Infrastructure"
                      }
                    }
                  ]
                }
              },
              "All Attributes": {
                "summary": "A single folder; all attributes",
                "description": "Request: `GET /knowledge/contentmgr/v4/folders/20240000000123?$lang=en-US&folderAdditionalAttributes=created,description,department,translateContent,permissions,articleCount,...&$pagenum=1&$pagesize=10`",
                "value": {
                  "paginationInfo": {
                    "count": 1,
                    "pagenum": 1,
                    "pagesize": 10
                  },
                  "folders": [
                    {
                      "id": "20240000000123",
                      "name": "IT Infrastructure",
                      "description": "Folder for IT infrastructure documentation.",
                      "created": {
                        "date": "2024-01-05T09:00:00.000Z",
                        "user": {
                          "id": "1004",
                          "userName": "john.roe",
                          "firstName": "John",
                          "middleName": "Michael",
                          "lastName": "Roe"
                        }
                      },
                      "lastModified": {
                        "date": "2024-08-10T14:30:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jane.doe",
                          "firstName": "Jane",
                          "middleName": "Anne",
                          "lastName": "Doe"
                        }
                      },
                      "parent": {
                        "id": "20240000000122",
                        "name": "Operations"
                      },
                      "articleCount": 12,
                      "department": {
                        "id": "1000",
                        "name": "Service"
                      },
                      "language": {
                        "code": "en-US",
                        "label": "English (US)",
                        "isDefault": true
                      },
                      "translateContent": true,
                      "permissions": [
                        {
                          "identity": {
                            "user": {
                              "id": "1005",
                              "userName": "jane.doe",
                              "firstName": "Jane",
                              "middleName": "Anne",
                              "lastName": "Doe"
                            }
                          },
                          "permission": [
                            {
                              "value": "own_folder",
                              "isExplicit": true,
                              "isAssigned": false
                            },
                            {
                              "value": "view_folder",
                              "isExplicit": true,
                              "isAssigned": true
                            },
                            {
                              "value": "create_folder",
                              "isExplicit": true,
                              "isAssigned": true
                            },
                            {
                              "value": "delete_folder",
                              "isExplicit": true,
                              "isAssigned": false
                            },
                            {
                              "value": "edit_folder",
                              "isExplicit": true,
                              "isAssigned": true
                            },
                            {
                              "value": "create_article",
                              "isExplicit": false,
                              "isAssigned": true
                            },
                            {
                              "value": "edit_article",
                              "isExplicit": false,
                              "isAssigned": true
                            },
                            {
                              "value": "delete_article",
                              "isExplicit": false,
                              "isAssigned": false
                            },
                            {
                              "value": "suggest_article",
                              "isExplicit": false,
                              "isAssigned": true
                            },
                            {
                              "value": "manage_suggestions",
                              "isExplicit": false,
                              "isAssigned": false
                            }
                          ]
                        }
                      ],
                      "subFolderCount": 2,
                      "path": "Operations\\IT Infrastructure",
                      "isSystemCreated": false
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "PauseConflict": {
        "description": "Conflict. The job is not in a state that can be paused (e.g., it is a validation job, or it has already completed/failed).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Status Conflict": {
                "$ref": "#/components/examples/PauseConflictStatus"
              },
              "Validation Conflict": {
                "$ref": "#/components/examples/ConflictValidation"
              }
            }
          }
        }
      },
      "ResumeConflict": {
        "description": "Conflict. The job is not in a state that can be resumed (e.g., it is still in progress or completed successfully).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "Conflict": {
                "$ref": "#/components/examples/ResumeConflictStatus"
              },
              "Validation Conflict": {
                "$ref": "#/components/examples/ConflictValidation"
              }
            }
          }
        }
      },
      "BadImportContentRequest": {
        "description": "Bad Request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "LimitExceeded Value": {
                "$ref": "#/components/examples/LimitExceeded"
              },
              "Invalid Value": {
                "$ref": "#/components/examples/InvalidValue"
              }
            }
          }
        }
      },
      "GetArticleWithContentResponse": {
        "description": "Success",
        "headers": {
          "ETag": {
            "$ref": "#/components/headers/eTag"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/GetArticleWithContent"
            },
            "examples": {
              "Summary attributes for published article": {
                "$ref": "#/components/examples/GetArticlePublishedSummary"
              },
              "All attributes for draft article": {
                "$ref": "#/components/examples/GetArticleDraftAllAttributes"
              },
              "All attributes for published article": {
                "$ref": "#/components/examples/GetArticlePublishedAllAttributes"
              },
              "All attributes for suggestion article": {
                "$ref": "#/components/examples/GetArticleSuggestionAllAttributes"
              }
            }
          }
        }
      },
      "GetArticlesByIdsResponse": {
        "description": "Success",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Articles"
            },
            "examples": {
              "Summary attributes for published articles": {
                "$ref": "#/components/examples/GetArticlesByIdsSummary"
              },
              "All attributes for draft article": {
                "$ref": "#/components/examples/GetArticlesByIdsDraftAllAttributes"
              },
              "All attributes for published article": {
                "$ref": "#/components/examples/GetArticlesByIdsPublishedAllAttributes"
              },
              "All attributes for suggestion article": {
                "$ref": "#/components/examples/GetArticlesByIdsSuggestionAllAttributes"
              }
            }
          }
        }
      },
      "412_Article": {
        "description": "Preconditions failed",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "ETag mismatch": {
                "$ref": "#/components/examples/412_etag_mismatch_article"
              }
            }
          }
        }
      },
      "409_conflict_article_locked": {
        "description": "Conflict. The article is already checked out (locked) by a **different** user. <br/>\nThis is not returned when the requesting user already holds the lock: in that case\nthe operation is idempotent and succeeds with `204 No Content` without changing the\narticle's state.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WSErrorCommon"
            },
            "examples": {
              "article already checked out": {
                "$ref": "#/components/examples/article_already_checked_out"
              }
            }
          }
        }
      }
    },
    "examples": {
      "Required_Attribute_Missing": {
        "description": "Required query parameter is missing",
        "value": {
          "code": "400-112",
          "developerMessage": "Required query parameter(s) is missing. The following parameters are required: <param name>"
        }
      },
      "Unallowed_Attribute_Value": {
        "description": "One of the attribute has value which is not allowed",
        "value": {
          "code": "400-196",
          "developerMessage": "Invalid value of attribute <attrbiute>, expected values are: [<possible_values>]."
        }
      },
      "Invalid_Authorization": {
        "description": "Invalid or expired Authorization. Generate new Authorization header and try again.\n",
        "value": {
          "code": "401-104",
          "developerMessage": "Invalid or missing 'Authorization' header value."
        }
      },
      "Scope_Not_Assigned": {
        "description": "User doesn't have required scope to call this API. Refer API description to know which scope needs to be assigned to user.\n",
        "value": {
          "code": "403-197",
          "developerMessage": "Not authorized to perform the action."
        }
      },
      "NotAcceptable": {
        "value": {
          "code": "406-100",
          "developerMessage": "Invalid 'Accept-Language' header value provided."
        }
      },
      "Too_Many_Request": {
        "description": "Too many requests. Try again at a later time.\n",
        "value": {
          "code": "429-001",
          "developerMessage": "Too many requests."
        }
      },
      "InternalServerError": {
        "value": {
          "code": "500-100",
          "developerMessage": "System is unable to process this request. Please contact your administrator."
        }
      },
      "duplicate_name": {
        "description": "The name is already used by a sibling of the same language under the same parent.",
        "value": {
          "code": "409-102",
          "developerMessage": "The following name is already in use under the same parent in this language: <name>."
        }
      },
      "unprocessable_content": {
        "description": "The request is well formed and schema-valid, but the current state of a resource it references does not allow the operation.",
        "value": {
          "code": "422-100",
          "developerMessage": "The operation cannot be performed on the specified resource in its current state: <id>."
        }
      },
      "Resource_Not_Found": {
        "description": "Resource not found",
        "value": {
          "code": "404-101",
          "developerMessage": "The following id does not exist: <id>"
        }
      },
      "precondition_failed": {
        "value": {
          "code": "412-100",
          "developerMessage": "Pre condition failed"
        }
      },
      "UnsupportedParameters": {
        "value": {
          "code": "400-101",
          "developerMessage": "Unsupported query parameter(s) supplied: '<query_parameter>'."
        }
      },
      "InvalidValue": {
        "value": {
          "code": "400-152",
          "developerMessage": "Invalid value is provided in the request body for the following attribute:'<attribute_name>'."
        }
      },
      "MissingParameter": {
        "value": {
          "code": "400-112",
          "developerMessage": "Required query parameter(s) is missing. The following parameters are required: '<query_parameter>'."
        }
      },
      "Unauthorized": {
        "value": {
          "code": "401-101",
          "developerMessage": "Invalid or expired 'Authorization' header provided. New login is required."
        }
      },
      "Forbidden": {
        "value": {
          "code": "403-178",
          "developerMessage": "User is not allowed to perform the following action: <action_name>."
        }
      },
      "NotFound": {
        "value": {
          "code": "404-100",
          "developerMessage": "The following IDs supplied in the URI path were not found: '<resource_id>'."
        }
      },
      "InvalidAcceptLanguage": {
        "value": {
          "code": "406-100",
          "developerMessage": "Invalid 'Accept-Language' header value provided."
        }
      },
      "PauseConflictStatus": {
        "value": {
          "code": "409-103",
          "developerMessage": "Job <job_id> could not be paused because it is in status: <status>."
        }
      },
      "ConflictValidation": {
        "value": {
          "code": "409-102",
          "developerMessage": "Job <job_id> is a validation job and cannot be paused or resumed."
        }
      },
      "ResumeConflictStatus": {
        "value": {
          "code": "409-104",
          "developerMessage": "Job <job_id> could not be resumed because it is in status: <status>."
        }
      },
      "LimitExceeded": {
        "value": {
          "code": "400-10424",
          "developerMessage": "Limit exceeded. The allowed limit for '{0}' is '{1}'."
        }
      },
      "GetArticlePublishedSummary": {
        "summary": "Summary attributes for published article",
        "description": "Request: `GET /knowledge/contentmgr/v4/article/PROD-2996?versionSelector=published`",
        "value": {
          "id": "PROD-2996",
          "name": "How to reset your password",
          "lastModified": {
            "date": "2026-04-18T14:30:00.000Z",
            "user": {
              "id": "1005",
              "userName": "jdoe",
              "firstName": "Jane",
              "lastName": "Doe"
            }
          },
          "folder": {
            "id": "20240000000123",
            "name": "Account Management"
          },
          "versions": [
            {
              "id": "1",
              "name": "How to reset your password",
              "lastModified": {
                "date": "2026-04-18T14:30:00.000Z",
                "user": {
                  "id": "1005",
                  "userName": "jdoe",
                  "firstName": "Jane",
                  "lastName": "Doe"
                }
              },
              "articleState": "published"
            }
          ]
        }
      },
      "GetArticleDraftAllAttributes": {
        "summary": "All attributes for draft article",
        "description": "Request: `GET /knowledge/contentmgr/v4/article/PROD-2996?versionSelector=latest&articleAdditionalAttributes=department,created,macro,articleReviewDetails,...`",
        "value": {
          "id": "PROD-2996",
          "name": "How to reset your password",
          "lastModified": {
            "date": "2026-04-21T10:45:00.000Z",
            "user": {
              "id": "1005",
              "userName": "jdoe",
              "firstName": "Jane",
              "lastName": "Doe"
            }
          },
          "created": {
            "date": "2026-04-10T08:00:00.000Z",
            "user": {
              "id": "1003",
              "userName": "asmith",
              "firstName": "Alex",
              "lastName": "Smith"
            }
          },
          "department": {
            "id": "1000",
            "name": "Service"
          },
          "macro": {
            "name": "password_reset_support_hours",
            "isSystemCreated": false,
            "description": "Reusable support-hours note for password reset content.",
            "defaultValue": "Agents respond within 24 hours.",
            "fallbackArticle": {
              "id": "PROD-2997",
              "name": "Password reset overview"
            }
          },
          "articleReviewDetails": {
            "currentReviewStage": {
              "id": "1000",
              "name": "Draft"
            },
            "previousReviewStage": {
              "id": "1001",
              "name": "Published"
            },
            "currentWorkflow": {
              "id": "999",
              "name": "Default Workflow"
            },
            "lastReviewedBy": {
              "id": "1005",
              "userName": "jdoe",
              "firstName": "Jane",
              "lastName": "Doe"
            }
          },
          "lockedBy": {
            "id": "1005",
            "userName": "jdoe",
            "firstName": "Jane",
            "lastName": "Doe"
          },
          "language": {
            "code": "en-US",
            "label": "English (United States)",
            "isDefault": true
          },
          "folder": {
            "id": "20240000000123",
            "name": "Account Management"
          },
          "compliancePolicy": {
            "id": "5001",
            "name": "Quarterly acknowledgement",
            "description": "Agents must acknowledge this guidance each quarter.",
            "sla": 30,
            "created": {
              "date": "2026-01-10T09:00:00.000Z",
              "user": {
                "id": "1002",
                "userName": "rpatel",
                "firstName": "Rina",
                "lastName": "Patel"
              }
            },
            "lastModified": {
              "date": "2026-03-01T12:00:00.000Z",
              "user": {
                "id": "1002",
                "userName": "rpatel",
                "firstName": "Rina",
                "lastName": "Patel"
              }
            }
          },
          "notes": [
            {
              "id": "7001",
              "content": "Updated draft to reflect the new sign-in experience.",
              "created": {
                "date": "2026-04-20T16:15:00.000Z",
                "user": {
                  "id": "1005",
                  "userName": "jdoe",
                  "firstName": "Jane",
                  "lastName": "Doe"
                }
              }
            }
          ],
          "relatedQuestions": [
            "How do I reset my password?",
            "What if the reset email never arrives?"
          ],
          "linkAlias": "247A11B1-A559-4176-B562-B88F94C960E5",
          "versions": [
            {
              "id": "2",
              "name": "How to reset your password",
              "versionNumber": 2,
              "created": {
                "date": "2026-04-19T08:30:00.000Z",
                "user": {
                  "id": "1005",
                  "userName": "jdoe",
                  "firstName": "Jane",
                  "lastName": "Doe"
                }
              },
              "lastModified": {
                "date": "2026-04-21T10:45:00.000Z",
                "user": {
                  "id": "1005",
                  "userName": "jdoe",
                  "firstName": "Jane",
                  "lastName": "Doe"
                }
              },
              "description": "Updated steps for the new sign-in page.",
              "keywords": "password reset,sign-in,troubleshooting",
              "summary": "Adds the current self-service reset path.",
              "additionalInfo": "Applies to SSO and local accounts.",
              "content": "<p>Open the sign-in page, select <b>Forgot password</b>, and follow the emailed reset instructions.</p><p><img id=\"96ea5bd9-36dd-4771-aaa7-aa8cf794307e\" src=\"https://api.egain.cloud/core/filemgr/v4/assets/download?signature=35674B764E7848586E786...\" alt=\"Forgot password link\" width=\"480\" /></p>",
              "label": "Updated sign-in experience",
              "imageUrl": "https://www.example.com/images/kb/password-reset-draft.png",
              "attachments": [
                {
                  "id": "9001",
                  "name": "password-reset-checklist.pdf",
                  "mediaType": "application/pdf",
                  "contentUrl": "https://api.egain.cloud/core/filemgr/v4/assets/predownload?signature=4A7B2C91E05D3F68B1C42...",
                  "size": 48213,
                  "created": {
                    "date": "2026-04-19T08:35:00.000Z",
                    "user": {
                      "id": "1005",
                      "userName": "jdoe",
                      "firstName": "Jane",
                      "lastName": "Doe"
                    }
                  }
                }
              ],
              "articleType": {
                "id": "932100000002020",
                "name": "General",
                "description": "Standard how-to article.",
                "articleCategoryId": 1,
                "useStructuredAuthoring": false,
                "imageUrl": "",
                "isSearchable": true,
                "isDisplayable": true,
                "isSystemCreated": true
              },
              "articleState": "draft",
              "translationStatus": "upto_date",
              "availableEditions": [
                {
                  "id": "100",
                  "name": "Default web",
                  "isContentEdition": true,
                  "publishView": {
                    "id": "200",
                    "name": "All customers"
                  }
                }
              ],
              "personalization": {
                "accessTagCategories": [
                  {
                    "id": "300",
                    "name": "Audience",
                    "tags": [
                      {
                        "id": "301",
                        "name": "Customer"
                      }
                    ],
                    "tagGroups": [
                      {
                        "id": "330",
                        "name": "Premium Customers"
                      }
                    ]
                  }
                ],
                "filterTagCategories": [
                  {
                    "id": "310",
                    "name": "ProductArea",
                    "tags": [
                      {
                        "id": "311",
                        "name": "Identity"
                      }
                    ],
                    "tagGroups": [
                      {
                        "id": "340",
                        "name": "Identity Services"
                      }
                    ]
                  }
                ],
                "publishViews": [
                  {
                    "id": "320",
                    "name": "Password reset web view",
                    "tagCategories": [
                      {
                        "id": "321",
                        "name": "Channel",
                        "tags": [
                          {
                            "id": "322",
                            "name": "Web"
                          }
                        ],
                        "tagGroups": [
                          {
                            "id": "323",
                            "name": "Digital Channels"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              "ownedBy": {
                "id": "1005",
                "userName": "jdoe",
                "firstName": "Jane",
                "lastName": "Doe"
              },
              "availabilityDate": "2026-04-19T09:00:00.000Z",
              "expirationDate": "2028-04-14T23:59:59.000Z",
              "isMajorUpdate": true,
              "includeInGenAI": true
            }
          ],
          "customAttributes": [
            {
              "attribInternalName": "audience",
              "attribName": {
                "value": "Audience",
                "displayValue": "Audience"
              },
              "attribValues": [
                {
                  "value": "Administrators",
                  "displayValue": "Administrators"
                }
              ],
              "attribType": "single_select_list"
            }
          ],
          "isPublishedVersionAvailable": true,
          "isPublishedVersionExpired": false,
          "isPublishedVersionScheduled": false,
          "isLatestVersionInDraft": true,
          "articleAction": [
            {
              "id": "3001",
              "casebase": {
                "id": "4101",
                "name": "Authentication Casebase"
              },
              "cluster": {
                "id": "5101",
                "name": "Account Access"
              },
              "guidedHelpProfile": {
                "id": "6101",
                "name": "Default Guided Help"
              },
              "isSearchable": true
            }
          ]
        }
      },
      "GetArticlePublishedAllAttributes": {
        "summary": "All attributes for published article",
        "description": "Request: `GET /knowledge/contentmgr/v4/article/PROD-2996?versionSelector=published&articleAdditionalAttributes=department,created,versions.structuredAuthoring,...`",
        "value": {
          "id": "PROD-2996",
          "name": "How to reset your password",
          "lastModified": {
            "date": "2026-04-21T10:45:00.000Z",
            "user": {
              "id": "1005",
              "userName": "jdoe",
              "firstName": "Jane",
              "lastName": "Doe"
            }
          },
          "created": {
            "date": "2026-04-10T08:00:00.000Z",
            "user": {
              "id": "1003",
              "userName": "asmith",
              "firstName": "Alex",
              "lastName": "Smith"
            }
          },
          "department": {
            "id": "1000",
            "name": "Service"
          },
          "macro": {
            "name": "password_reset_support_hours",
            "isSystemCreated": false,
            "description": "Reusable support-hours note for password reset content.",
            "defaultValue": "Agents respond within 24 hours.",
            "fallbackArticle": {
              "id": "PROD-2997",
              "name": "Password reset overview"
            }
          },
          "articleReviewDetails": {
            "currentReviewStage": {
              "id": "1001",
              "name": "Published"
            },
            "previousReviewStage": {
              "id": "1000",
              "name": "Draft"
            },
            "currentWorkflow": {
              "id": "999",
              "name": "Default Workflow"
            },
            "lastReviewedBy": {
              "id": "1005",
              "userName": "jdoe",
              "firstName": "Jane",
              "lastName": "Doe"
            }
          },
          "lockedBy": {
            "id": "1005",
            "userName": "jdoe",
            "firstName": "Jane",
            "lastName": "Doe"
          },
          "language": {
            "code": "en-US",
            "label": "English (United States)",
            "isDefault": true
          },
          "folder": {
            "id": "20240000000123",
            "name": "Account Management"
          },
          "compliancePolicy": {
            "id": "5001",
            "name": "Quarterly acknowledgement",
            "description": "Agents must acknowledge this guidance each quarter.",
            "sla": 30,
            "created": {
              "date": "2026-01-10T09:00:00.000Z",
              "user": {
                "id": "1002",
                "userName": "rpatel",
                "firstName": "Rina",
                "lastName": "Patel"
              }
            },
            "lastModified": {
              "date": "2026-03-01T12:00:00.000Z",
              "user": {
                "id": "1002",
                "userName": "rpatel",
                "firstName": "Rina",
                "lastName": "Patel"
              }
            }
          },
          "notes": [
            {
              "id": "7001",
              "content": "Updated draft to reflect the new sign-in experience.",
              "created": {
                "date": "2026-04-20T16:15:00.000Z",
                "user": {
                  "id": "1005",
                  "userName": "jdoe",
                  "firstName": "Jane",
                  "lastName": "Doe"
                }
              }
            }
          ],
          "relatedQuestions": [
            "How do I reset my password?",
            "What if the reset email never arrives?"
          ],
          "linkAlias": "B7A795B2-C469-4B02-B783-9BD176ED22CB",
          "versions": [
            {
              "id": "1",
              "name": "How to reset your password",
              "versionNumber": 1,
              "created": {
                "date": "2026-04-10T08:00:00.000Z",
                "user": {
                  "id": "1003",
                  "userName": "asmith",
                  "firstName": "Alex",
                  "lastName": "Smith"
                }
              },
              "lastModified": {
                "date": "2026-04-18T14:30:00.000Z",
                "user": {
                  "id": "1005",
                  "userName": "jdoe",
                  "firstName": "Jane",
                  "lastName": "Doe"
                }
              },
              "description": "Published guidance for the current self-service reset path.",
              "keywords": "password reset,sign-in,troubleshooting",
              "summary": "Provides the currently published reset steps.",
              "additionalInfo": "Applies to SSO and local accounts.",
              "content": "<p>Open the sign-in page, select <b>Forgot password</b>, and follow the emailed reset instructions.</p><p><img id=\"96ea5bd9-36dd-4771-aaa7-aa8cf794307e\" src=\"https://api.egain.cloud/core/filemgr/v4/assets/download?signature=35674B764E7848586E786...\" alt=\"Forgot password link\" width=\"480\" /></p>",
              "structuredAuthoring": {
                "confidenceLevel": {
                  "value": "validated",
                  "displayValue": "Validated"
                },
                "environment": "Online banking portal, Account Management",
                "issueDescription": "Customer cannot complete password reset after being redirected from the sign-in page.",
                "issueCause": "Redirect URI mismatch between the portal and the identity provider."
              },
              "label": "Published sign-in guidance",
              "imageUrl": "https://www.example.com/images/kb/password-reset-published.png",
              "attachments": [
                {
                  "id": "9001",
                  "name": "password-reset-checklist.pdf",
                  "mediaType": "application/pdf",
                  "contentUrl": "https://api.egain.cloud/core/filemgr/v4/assets/predownload?signature=4A7B2C91E05D3F68B1C42...",
                  "size": 48213,
                  "created": {
                    "date": "2026-04-15T09:05:00.000Z",
                    "user": {
                      "id": "1005",
                      "userName": "jdoe",
                      "firstName": "Jane",
                      "lastName": "Doe"
                    }
                  }
                }
              ],
              "articleType": {
                "id": "932100000002021",
                "name": "Issue resolution",
                "description": "How-to article that uses structured authoring.",
                "articleCategoryId": 1,
                "useStructuredAuthoring": true,
                "imageUrl": "",
                "isSearchable": true,
                "isDisplayable": true,
                "isSystemCreated": true
              },
              "articleState": "published",
              "translationStatus": "upto_date",
              "availableEditions": [
                {
                  "id": "100",
                  "name": "Default web",
                  "isContentEdition": true,
                  "publishView": {
                    "id": "200",
                    "name": "All customers"
                  }
                }
              ],
              "personalization": {
                "accessTagCategories": [
                  {
                    "id": "300",
                    "name": "Audience",
                    "tags": [
                      {
                        "id": "301",
                        "name": "Customer"
                      }
                    ],
                    "tagGroups": [
                      {
                        "id": "330",
                        "name": "Premium Customers"
                      }
                    ]
                  }
                ],
                "filterTagCategories": [
                  {
                    "id": "310",
                    "name": "ProductArea",
                    "tags": [
                      {
                        "id": "311",
                        "name": "Identity"
                      }
                    ],
                    "tagGroups": [
                      {
                        "id": "340",
                        "name": "Identity Services"
                      }
                    ]
                  }
                ],
                "publishViews": [
                  {
                    "id": "320",
                    "name": "Password reset web view",
                    "tagCategories": [
                      {
                        "id": "321",
                        "name": "Channel",
                        "tags": [
                          {
                            "id": "322",
                            "name": "Web"
                          }
                        ],
                        "tagGroups": [
                          {
                            "id": "323",
                            "name": "Digital Channels"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              "ownedBy": {
                "id": "1005",
                "userName": "jdoe",
                "firstName": "Jane",
                "lastName": "Doe"
              },
              "availabilityDate": "2026-04-15T09:00:00.000Z",
              "expirationDate": "2028-04-14T23:59:59.000Z",
              "isMajorUpdate": false,
              "includeInGenAI": true
            }
          ],
          "customAttributes": [
            {
              "attribInternalName": "audience",
              "attribName": {
                "value": "Audience",
                "displayValue": "Audience"
              },
              "attribValues": [
                {
                  "value": "Administrators",
                  "displayValue": "Administrators"
                }
              ],
              "attribType": "single_select_list"
            }
          ],
          "isPublishedVersionAvailable": true,
          "isPublishedVersionExpired": false,
          "isPublishedVersionScheduled": false,
          "isLatestVersionInDraft": true,
          "articleAction": [
            {
              "id": "3001",
              "casebase": {
                "id": "4101",
                "name": "Authentication Casebase"
              },
              "cluster": {
                "id": "5101",
                "name": "Account Access"
              },
              "guidedHelpProfile": {
                "id": "6101",
                "name": "Default Guided Help"
              },
              "isSearchable": true
            }
          ]
        }
      },
      "GetArticleSuggestionAllAttributes": {
        "summary": "All applicable attributes for suggestion article",
        "description": "Request: `GET /knowledge/contentmgr/v4/article/PROD-5401?versionSelector=latest&articleAdditionalAttributes=department,created,suggestionStatus,suggestionResolutionCode,...`",
        "value": {
          "id": "PROD-5401",
          "name": "Clarify VPN access after password reset",
          "lastModified": {
            "date": "2026-05-02T11:20:00.000Z",
            "user": {
              "id": "1008",
              "userName": "gnguyen",
              "firstName": "Grace",
              "lastName": "Nguyen"
            }
          },
          "created": {
            "date": "2026-05-01T14:10:00.000Z",
            "user": {
              "id": "1010",
              "userName": "mgarcia",
              "firstName": "Maria",
              "lastName": "Garcia"
            }
          },
          "department": {
            "id": "1000",
            "name": "Service"
          },
          "suggestionStatus": {
            "value": "declined",
            "displayValue": "Declined"
          },
          "suggestionResolutionCode": {
            "value": "duplicate",
            "displayValue": "Duplicate"
          },
          "articleReviewDetails": {
            "currentReviewStage": {
              "id": "2002",
              "name": "Declined"
            },
            "previousReviewStage": {
              "id": "2001",
              "name": "Pending Review"
            },
            "currentWorkflow": {
              "id": "1999",
              "name": "Suggestion Workflow"
            },
            "lastReviewedBy": {
              "id": "1008",
              "userName": "gnguyen",
              "firstName": "Grace",
              "lastName": "Nguyen"
            }
          },
          "language": {
            "code": "en-US",
            "label": "English (United States)",
            "isDefault": true
          },
          "folder": {
            "id": "20240000000123",
            "name": "Account Management"
          },
          "notes": [
            {
              "id": "7101",
              "content": "Customer feedback indicates VPN reconnection is commonly missed.",
              "created": {
                "date": "2026-05-01T15:00:00.000Z",
                "user": {
                  "id": "1010",
                  "userName": "mgarcia",
                  "firstName": "Maria",
                  "lastName": "Garcia"
                }
              }
            }
          ],
          "linkAlias": "2B6B8A3E-72E4-408F-B675-8FE3A272FF7D",
          "versions": [
            {
              "id": "1",
              "name": "Clarify VPN access after password reset",
              "versionNumber": 1,
              "created": {
                "date": "2026-05-01T14:10:00.000Z",
                "user": {
                  "id": "1010",
                  "userName": "mgarcia",
                  "firstName": "Maria",
                  "lastName": "Garcia"
                }
              },
              "lastModified": {
                "date": "2026-05-02T11:20:00.000Z",
                "user": {
                  "id": "1008",
                  "userName": "gnguyen",
                  "firstName": "Grace",
                  "lastName": "Nguyen"
                }
              },
              "description": "Suggestion to clarify the VPN follow-up step after a password reset.",
              "content": "<p>After you reset your password, disconnect and reconnect to VPN so your new credentials take effect.</p>",
              "label": "Customer feedback suggestion",
              "attachments": [
                {
                  "id": "9101",
                  "name": "vpn-reconnect-screenshot.png",
                  "mediaType": "image/png",
                  "contentUrl": "https://api.egain.cloud/core/filemgr/v4/assets/predownload?signature=7E19D04B6C2A58F3E9B17...",
                  "size": 118204,
                  "created": {
                    "date": "2026-05-01T14:20:00.000Z",
                    "user": {
                      "id": "1010",
                      "userName": "mgarcia",
                      "firstName": "Maria",
                      "lastName": "Garcia"
                    }
                  }
                }
              ],
              "articleType": {
                "id": "999900000002027",
                "name": "Suggestion",
                "description": "Used exclusively for suggestions",
                "articleCategoryId": 4,
                "useStructuredAuthoring": false,
                "imageUrl": "",
                "isSearchable": false,
                "isDisplayable": false,
                "isSystemCreated": true
              },
              "articleState": "draft",
              "translationStatus": "outdated",
              "ownedBy": {
                "id": "1010",
                "userName": "mgarcia",
                "firstName": "Maria",
                "lastName": "Garcia"
              },
              "availabilityDate": "2026-05-01T14:10:00.000Z",
              "expirationDate": "2027-05-01T23:59:59.000Z",
              "includeInGenAI": false
            }
          ],
          "customAttributes": [
            {
              "attribInternalName": "sourceChannel",
              "attribName": {
                "value": "Source Channel",
                "displayValue": "Source Channel"
              },
              "attribValues": [
                {
                  "value": "Customer Portal Feedback",
                  "displayValue": "Customer Portal Feedback"
                }
              ],
              "attribType": "string"
            }
          ]
        }
      },
      "GetArticlesByIdsSummary": {
        "summary": "Summary attributes for published articles",
        "description": "Request: `GET /knowledge/contentmgr/v4/articles/PROD-2996,PROD-4102?versionSelector=published&$lang=en-US&$pagenum=1&$pagesize=2`",
        "value": {
          "paginationInfo": {
            "count": 2,
            "pagenum": 1,
            "pagesize": 2
          },
          "articles": [
            {
              "id": "PROD-2996",
              "name": "How to reset your password",
              "lastModified": {
                "date": "2026-04-18T14:30:00.000Z",
                "user": {
                  "id": "1005",
                  "userName": "jdoe",
                  "firstName": "Jane",
                  "lastName": "Doe"
                }
              },
              "folder": {
                "id": "20240000000123",
                "name": "Account Management"
              },
              "versions": [
                {
                  "id": "1",
                  "name": "How to reset your password",
                  "lastModified": {
                    "date": "2026-04-18T14:30:00.000Z",
                    "user": {
                      "id": "1005",
                      "userName": "jdoe",
                      "firstName": "Jane",
                      "lastName": "Doe"
                    }
                  },
                  "articleState": "published"
                }
              ]
            },
            {
              "id": "PROD-4102",
              "name": "Unlock a temporarily locked account",
              "lastModified": {
                "date": "2026-05-02T09:15:00.000Z",
                "user": {
                  "id": "1011",
                  "userName": "mrivera",
                  "firstName": "Morgan",
                  "lastName": "Rivera"
                }
              },
              "folder": {
                "id": "20240000000123",
                "name": "Account Management"
              },
              "versions": [
                {
                  "id": "4",
                  "name": "Unlock a temporarily locked account",
                  "lastModified": {
                    "date": "2026-05-02T09:15:00.000Z",
                    "user": {
                      "id": "1011",
                      "userName": "mrivera",
                      "firstName": "Morgan",
                      "lastName": "Rivera"
                    }
                  },
                  "articleState": "published"
                }
              ]
            }
          ]
        }
      },
      "GetArticlesByIdsDraftAllAttributes": {
        "summary": "All attributes for draft article",
        "description": "Request: `GET /knowledge/contentmgr/v4/articles/PROD-2996?versionSelector=latest&$lang=en-US&articleAdditionalAttributes=department,created,macro,articleReviewDetails,...&$pagenum=1&$pagesize=1`",
        "value": {
          "paginationInfo": {
            "count": 1,
            "pagenum": 1,
            "pagesize": 1
          },
          "articles": [
            {
              "id": "PROD-2996",
              "name": "How to reset your password",
              "lastModified": {
                "date": "2026-04-21T10:45:00.000Z",
                "user": {
                  "id": "1005",
                  "userName": "jdoe",
                  "firstName": "Jane",
                  "lastName": "Doe"
                }
              },
              "created": {
                "date": "2026-04-10T08:00:00.000Z",
                "user": {
                  "id": "1003",
                  "userName": "asmith",
                  "firstName": "Alex",
                  "lastName": "Smith"
                }
              },
              "department": {
                "id": "1000",
                "name": "Service"
              },
              "macro": {
                "name": "password_reset_support_hours",
                "isSystemCreated": false,
                "description": "Reusable support-hours note for password reset content.",
                "defaultValue": "Agents respond within 24 hours.",
                "fallbackArticle": {
                  "id": "PROD-2997",
                  "name": "Password reset overview"
                }
              },
              "articleReviewDetails": {
                "currentReviewStage": {
                  "id": "1000",
                  "name": "Draft"
                },
                "previousReviewStage": {
                  "id": "1001",
                  "name": "Published"
                },
                "currentWorkflow": {
                  "id": "999",
                  "name": "Default Workflow"
                },
                "lastReviewedBy": {
                  "id": "1005",
                  "userName": "jdoe",
                  "firstName": "Jane",
                  "lastName": "Doe"
                }
              },
              "lockedBy": {
                "id": "1005",
                "userName": "jdoe",
                "firstName": "Jane",
                "lastName": "Doe"
              },
              "language": {
                "code": "en-US",
                "label": "English (United States)",
                "isDefault": true
              },
              "folder": {
                "id": "20240000000123",
                "name": "Account Management"
              },
              "compliancePolicy": {
                "id": "5001",
                "name": "Quarterly acknowledgement",
                "description": "Agents must acknowledge this guidance each quarter.",
                "sla": 30,
                "created": {
                  "date": "2026-01-10T09:00:00.000Z",
                  "user": {
                    "id": "1002",
                    "userName": "rpatel",
                    "firstName": "Rina",
                    "lastName": "Patel"
                  }
                },
                "lastModified": {
                  "date": "2026-03-01T12:00:00.000Z",
                  "user": {
                    "id": "1002",
                    "userName": "rpatel",
                    "firstName": "Rina",
                    "lastName": "Patel"
                  }
                }
              },
              "notes": [
                {
                  "id": "7001",
                  "content": "Updated draft to reflect the new sign-in experience.",
                  "created": {
                    "date": "2026-04-20T16:15:00.000Z",
                    "user": {
                      "id": "1005",
                      "userName": "jdoe",
                      "firstName": "Jane",
                      "lastName": "Doe"
                    }
                  }
                }
              ],
              "relatedQuestions": [
                "How do I reset my password?",
                "What if the reset email never arrives?"
              ],
              "linkAlias": "247A11B1-A559-4176-B562-B88F94C960E5",
              "versions": [
                {
                  "id": "2",
                  "name": "How to reset your password",
                  "versionNumber": 2,
                  "created": {
                    "date": "2026-04-19T08:30:00.000Z",
                    "user": {
                      "id": "1005",
                      "userName": "jdoe",
                      "firstName": "Jane",
                      "lastName": "Doe"
                    }
                  },
                  "lastModified": {
                    "date": "2026-04-21T10:45:00.000Z",
                    "user": {
                      "id": "1005",
                      "userName": "jdoe",
                      "firstName": "Jane",
                      "lastName": "Doe"
                    }
                  },
                  "description": "Updated steps for the new sign-in page.",
                  "keywords": "password reset,sign-in,troubleshooting",
                  "summary": "Adds the current self-service reset path.",
                  "additionalInfo": "Applies to SSO and local accounts.",
                  "label": "Updated sign-in experience",
                  "imageUrl": "https://www.example.com/images/kb/password-reset-draft.png",
                  "attachments": [
                    {
                      "id": "9001",
                      "name": "password-reset-checklist.pdf",
                      "mediaType": "application/pdf",
                      "contentUrl": "https://api.egain.cloud/core/filemgr/v4/assets/predownload?signature=4A7B2C91E05D3F68B1C42...",
                      "size": 48213,
                      "created": {
                        "date": "2026-04-19T08:35:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jdoe",
                          "firstName": "Jane",
                          "lastName": "Doe"
                        }
                      }
                    }
                  ],
                  "articleType": {
                    "id": "932100000002020",
                    "name": "General",
                    "description": "Standard how-to article.",
                    "articleCategoryId": 1,
                    "useStructuredAuthoring": false,
                    "imageUrl": "",
                    "isSearchable": true,
                    "isDisplayable": true,
                    "isSystemCreated": true
                  },
                  "articleState": "draft",
                  "translationStatus": "upto_date",
                  "availableEditions": [
                    {
                      "id": "100",
                      "name": "Default web",
                      "isContentEdition": true,
                      "publishView": {
                        "id": "200",
                        "name": "All customers"
                      }
                    }
                  ],
                  "personalization": {
                    "accessTagCategories": [
                      {
                        "id": "300",
                        "name": "Audience",
                        "tags": [
                          {
                            "id": "301",
                            "name": "Customer"
                          }
                        ],
                        "tagGroups": [
                          {
                            "id": "330",
                            "name": "Premium Customers"
                          }
                        ]
                      }
                    ],
                    "filterTagCategories": [
                      {
                        "id": "310",
                        "name": "ProductArea",
                        "tags": [
                          {
                            "id": "311",
                            "name": "Identity"
                          }
                        ],
                        "tagGroups": [
                          {
                            "id": "340",
                            "name": "Identity Services"
                          }
                        ]
                      }
                    ],
                    "publishViews": [
                      {
                        "id": "320",
                        "name": "Password reset web view",
                        "tagCategories": [
                          {
                            "id": "321",
                            "name": "Channel",
                            "tags": [
                              {
                                "id": "322",
                                "name": "Web"
                              }
                            ],
                            "tagGroups": [
                              {
                                "id": "323",
                                "name": "Digital Channels"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  "ownedBy": {
                    "id": "1005",
                    "userName": "jdoe",
                    "firstName": "Jane",
                    "lastName": "Doe"
                  },
                  "availabilityDate": "2026-04-19T09:00:00.000Z",
                  "expirationDate": "2028-04-14T23:59:59.000Z",
                  "isMajorUpdate": true,
                  "includeInGenAI": true
                }
              ],
              "customAttributes": [
                {
                  "attribInternalName": "audience",
                  "attribName": {
                    "value": "Audience",
                    "displayValue": "Audience"
                  },
                  "attribValues": [
                    {
                      "value": "Administrators",
                      "displayValue": "Administrators"
                    }
                  ],
                  "attribType": "single_select_list"
                }
              ],
              "isPublishedVersionAvailable": true,
              "isPublishedVersionExpired": false,
              "isPublishedVersionScheduled": false,
              "isLatestVersionInDraft": true,
              "articleAction": [
                {
                  "id": "3001",
                  "casebase": {
                    "id": "4101",
                    "name": "Authentication Casebase"
                  },
                  "cluster": {
                    "id": "5101",
                    "name": "Account Access"
                  },
                  "guidedHelpProfile": {
                    "id": "6101",
                    "name": "Default Guided Help"
                  },
                  "isSearchable": true
                }
              ]
            }
          ]
        }
      },
      "GetArticlesByIdsPublishedAllAttributes": {
        "summary": "All attributes for published article",
        "description": "Request: `GET /knowledge/contentmgr/v4/articles/PROD-2996?versionSelector=published&$lang=en-US&articleAdditionalAttributes=department,created,versions.structuredAuthoring,...&$pagenum=1&$pagesize=1`",
        "value": {
          "paginationInfo": {
            "count": 1,
            "pagenum": 1,
            "pagesize": 1
          },
          "articles": [
            {
              "id": "PROD-2996",
              "name": "How to reset your password",
              "lastModified": {
                "date": "2026-04-21T10:45:00.000Z",
                "user": {
                  "id": "1005",
                  "userName": "jdoe",
                  "firstName": "Jane",
                  "lastName": "Doe"
                }
              },
              "created": {
                "date": "2026-04-10T08:00:00.000Z",
                "user": {
                  "id": "1003",
                  "userName": "asmith",
                  "firstName": "Alex",
                  "lastName": "Smith"
                }
              },
              "department": {
                "id": "1000",
                "name": "Service"
              },
              "macro": {
                "name": "password_reset_support_hours",
                "isSystemCreated": false,
                "description": "Reusable support-hours note for password reset content.",
                "defaultValue": "Agents respond within 24 hours.",
                "fallbackArticle": {
                  "id": "PROD-2997",
                  "name": "Password reset overview"
                }
              },
              "articleReviewDetails": {
                "currentReviewStage": {
                  "id": "1001",
                  "name": "Published"
                },
                "previousReviewStage": {
                  "id": "1000",
                  "name": "Draft"
                },
                "currentWorkflow": {
                  "id": "999",
                  "name": "Default Workflow"
                },
                "lastReviewedBy": {
                  "id": "1005",
                  "userName": "jdoe",
                  "firstName": "Jane",
                  "lastName": "Doe"
                }
              },
              "lockedBy": {
                "id": "1005",
                "userName": "jdoe",
                "firstName": "Jane",
                "lastName": "Doe"
              },
              "language": {
                "code": "en-US",
                "label": "English (United States)",
                "isDefault": true
              },
              "folder": {
                "id": "20240000000123",
                "name": "Account Management"
              },
              "compliancePolicy": {
                "id": "5001",
                "name": "Quarterly acknowledgement",
                "description": "Agents must acknowledge this guidance each quarter.",
                "sla": 30,
                "created": {
                  "date": "2026-01-10T09:00:00.000Z",
                  "user": {
                    "id": "1002",
                    "userName": "rpatel",
                    "firstName": "Rina",
                    "lastName": "Patel"
                  }
                },
                "lastModified": {
                  "date": "2026-03-01T12:00:00.000Z",
                  "user": {
                    "id": "1002",
                    "userName": "rpatel",
                    "firstName": "Rina",
                    "lastName": "Patel"
                  }
                }
              },
              "notes": [
                {
                  "id": "7001",
                  "content": "Updated draft to reflect the new sign-in experience.",
                  "created": {
                    "date": "2026-04-20T16:15:00.000Z",
                    "user": {
                      "id": "1005",
                      "userName": "jdoe",
                      "firstName": "Jane",
                      "lastName": "Doe"
                    }
                  }
                }
              ],
              "relatedQuestions": [
                "How do I reset my password?",
                "What if the reset email never arrives?"
              ],
              "linkAlias": "B7A795B2-C469-4B02-B783-9BD176ED22CB",
              "versions": [
                {
                  "id": "1",
                  "name": "How to reset your password",
                  "versionNumber": 1,
                  "created": {
                    "date": "2026-04-10T08:00:00.000Z",
                    "user": {
                      "id": "1003",
                      "userName": "asmith",
                      "firstName": "Alex",
                      "lastName": "Smith"
                    }
                  },
                  "lastModified": {
                    "date": "2026-04-18T14:30:00.000Z",
                    "user": {
                      "id": "1005",
                      "userName": "jdoe",
                      "firstName": "Jane",
                      "lastName": "Doe"
                    }
                  },
                  "description": "Published guidance for the current self-service reset path.",
                  "keywords": "password reset,sign-in,troubleshooting",
                  "summary": "Provides the currently published reset steps.",
                  "additionalInfo": "Applies to SSO and local accounts.",
                  "structuredAuthoring": {
                    "confidenceLevel": {
                      "value": "validated",
                      "displayValue": "Validated"
                    },
                    "environment": "Online banking portal, Account Management",
                    "issueDescription": "Customer cannot complete password reset after being redirected from the sign-in page.",
                    "issueCause": "Redirect URI mismatch between the portal and the identity provider."
                  },
                  "label": "Published sign-in guidance",
                  "imageUrl": "https://www.example.com/images/kb/password-reset-published.png",
                  "attachments": [
                    {
                      "id": "9001",
                      "name": "password-reset-checklist.pdf",
                      "mediaType": "application/pdf",
                      "contentUrl": "https://api.egain.cloud/core/filemgr/v4/assets/predownload?signature=4A7B2C91E05D3F68B1C42...",
                      "size": 48213,
                      "created": {
                        "date": "2026-04-15T09:05:00.000Z",
                        "user": {
                          "id": "1005",
                          "userName": "jdoe",
                          "firstName": "Jane",
                          "lastName": "Doe"
                        }
                      }
                    }
                  ],
                  "articleType": {
                    "id": "932100000002021",
                    "name": "Issue resolution",
                    "description": "How-to article that uses structured authoring.",
                    "articleCategoryId": 1,
                    "useStructuredAuthoring": true,
                    "imageUrl": "",
                    "isSearchable": true,
                    "isDisplayable": true,
                    "isSystemCreated": true
                  },
                  "articleState": "published",
                  "translationStatus": "upto_date",
                  "availableEditions": [
                    {
                      "id": "100",
                      "name": "Default web",
                      "isContentEdition": true,
                      "publishView": {
                        "id": "200",
                        "name": "All customers"
                      }
                    }
                  ],
                  "personalization": {
                    "accessTagCategories": [
                      {
                        "id": "300",
                        "name": "Audience",
                        "tags": [
                          {
                            "id": "301",
                            "name": "Customer"
                          }
                        ],
                        "tagGroups": [
                          {
                            "id": "330",
                            "name": "Premium Customers"
                          }
                        ]
                      }
                    ],
                    "filterTagCategories": [
                      {
                        "id": "310",
                        "name": "ProductArea",
                        "tags": [
                          {
                            "id": "311",
                            "name": "Identity"
                          }
                        ],
                        "tagGroups": [
                          {
                            "id": "340",
                            "name": "Identity Services"
                          }
                        ]
                      }
                    ],
                    "publishViews": [
                      {
                        "id": "320",
                        "name": "Password reset web view",
                        "tagCategories": [
                          {
                            "id": "321",
                            "name": "Channel",
                            "tags": [
                              {
                                "id": "322",
                                "name": "Web"
                              }
                            ],
                            "tagGroups": [
                              {
                                "id": "323",
                                "name": "Digital Channels"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  },
                  "ownedBy": {
                    "id": "1005",
                    "userName": "jdoe",
                    "firstName": "Jane",
                    "lastName": "Doe"
                  },
                  "availabilityDate": "2026-04-15T09:00:00.000Z",
                  "expirationDate": "2028-04-14T23:59:59.000Z",
                  "isMajorUpdate": false,
                  "includeInGenAI": true
                }
              ],
              "customAttributes": [
                {
                  "attribInternalName": "audience",
                  "attribName": {
                    "value": "Audience",
                    "displayValue": "Audience"
                  },
                  "attribValues": [
                    {
                      "value": "Administrators",
                      "displayValue": "Administrators"
                    }
                  ],
                  "attribType": "single_select_list"
                }
              ],
              "isPublishedVersionAvailable": true,
              "isPublishedVersionExpired": false,
              "isPublishedVersionScheduled": false,
              "isLatestVersionInDraft": true,
              "articleAction": [
                {
                  "id": "3001",
                  "casebase": {
                    "id": "4101",
                    "name": "Authentication Casebase"
                  },
                  "cluster": {
                    "id": "5101",
                    "name": "Account Access"
                  },
                  "guidedHelpProfile": {
                    "id": "6101",
                    "name": "Default Guided Help"
                  },
                  "isSearchable": true
                }
              ]
            }
          ]
        }
      },
      "GetArticlesByIdsSuggestionAllAttributes": {
        "summary": "All attributes for suggestion article",
        "description": "Request: `GET /knowledge/contentmgr/v4/articles/PROD-5401?versionSelector=latest&$lang=en-US&articleAdditionalAttributes=department,created,suggestionStatus,suggestionResolutionCode,...&$pagenum=1&$pagesize=1`",
        "value": {
          "paginationInfo": {
            "count": 1,
            "pagenum": 1,
            "pagesize": 1
          },
          "articles": [
            {
              "id": "PROD-5401",
              "name": "Clarify VPN access after password reset",
              "lastModified": {
                "date": "2026-05-02T11:20:00.000Z",
                "user": {
                  "id": "1008",
                  "userName": "gnguyen",
                  "firstName": "Grace",
                  "lastName": "Nguyen"
                }
              },
              "created": {
                "date": "2026-05-01T14:10:00.000Z",
                "user": {
                  "id": "1010",
                  "userName": "mgarcia",
                  "firstName": "Maria",
                  "lastName": "Garcia"
                }
              },
              "department": {
                "id": "1000",
                "name": "Service"
              },
              "suggestionStatus": {
                "value": "declined",
                "displayValue": "Declined"
              },
              "suggestionResolutionCode": {
                "value": "duplicate",
                "displayValue": "Duplicate"
              },
              "articleReviewDetails": {
                "currentReviewStage": {
                  "id": "2002",
                  "name": "Declined"
                },
                "previousReviewStage": {
                  "id": "2001",
                  "name": "Pending Review"
                },
                "currentWorkflow": {
                  "id": "1999",
                  "name": "Suggestion Workflow"
                },
                "lastReviewedBy": {
                  "id": "1008",
                  "userName": "gnguyen",
                  "firstName": "Grace",
                  "lastName": "Nguyen"
                }
              },
              "language": {
                "code": "en-US",
                "label": "English (United States)",
                "isDefault": true
              },
              "folder": {
                "id": "20240000000123",
                "name": "Account Management"
              },
              "notes": [
                {
                  "id": "7101",
                  "content": "Customer feedback indicates VPN reconnection is commonly missed.",
                  "created": {
                    "date": "2026-05-01T15:00:00.000Z",
                    "user": {
                      "id": "1010",
                      "userName": "mgarcia",
                      "firstName": "Maria",
                      "lastName": "Garcia"
                    }
                  }
                }
              ],
              "linkAlias": "2B6B8A3E-72E4-408F-B675-8FE3A272FF7D",
              "versions": [
                {
                  "id": "1",
                  "name": "Clarify VPN access after password reset",
                  "versionNumber": 1,
                  "created": {
                    "date": "2026-05-01T14:10:00.000Z",
                    "user": {
                      "id": "1010",
                      "userName": "mgarcia",
                      "firstName": "Maria",
                      "lastName": "Garcia"
                    }
                  },
                  "lastModified": {
                    "date": "2026-05-02T11:20:00.000Z",
                    "user": {
                      "id": "1008",
                      "userName": "gnguyen",
                      "firstName": "Grace",
                      "lastName": "Nguyen"
                    }
                  },
                  "description": "Suggestion to clarify the VPN follow-up step after a password reset.",
                  "label": "Customer feedback suggestion",
                  "attachments": [
                    {
                      "id": "9101",
                      "name": "vpn-reconnect-screenshot.png",
                      "mediaType": "image/png",
                      "contentUrl": "https://api.egain.cloud/core/filemgr/v4/assets/predownload?signature=7E19D04B6C2A58F3E9B17...",
                      "size": 118204,
                      "created": {
                        "date": "2026-05-01T14:20:00.000Z",
                        "user": {
                          "id": "1010",
                          "userName": "mgarcia",
                          "firstName": "Maria",
                          "lastName": "Garcia"
                        }
                      }
                    }
                  ],
                  "articleType": {
                    "id": "999900000002027",
                    "name": "Suggestion",
                    "description": "Used exclusively for suggestions",
                    "articleCategoryId": 4,
                    "useStructuredAuthoring": false,
                    "imageUrl": "",
                    "isSearchable": false,
                    "isDisplayable": false,
                    "isSystemCreated": true
                  },
                  "articleState": "draft",
                  "translationStatus": "outdated",
                  "ownedBy": {
                    "id": "1010",
                    "userName": "mgarcia",
                    "firstName": "Maria",
                    "lastName": "Garcia"
                  },
                  "availabilityDate": "2026-05-01T14:10:00.000Z",
                  "expirationDate": "2027-05-01T23:59:59.000Z",
                  "includeInGenAI": false
                }
              ],
              "customAttributes": [
                {
                  "attribInternalName": "sourceChannel",
                  "attribName": {
                    "value": "Source Channel",
                    "displayValue": "Source Channel"
                  },
                  "attribValues": [
                    {
                      "value": "Customer Portal Feedback",
                      "displayValue": "Customer Portal Feedback"
                    }
                  ],
                  "attribType": "string"
                }
              ]
            }
          ]
        }
      },
      "EditArticleAllAttributes": {
        "summary": "All writable attributes",
        "description": "Every writable request field populated for `operation=edit` and `operation=checkin`.\n`attachments` keeps existing attachment `9001` by its `id` and adds a newly uploaded file\nby its `fileUploadId`; any attachment not listed is removed. `content` does the same for\ninline images — it keeps image `96ea5bd9-36dd-4771-aaa7-aa8cf794307e` by its `id` and adds\na pre-uploaded image by its `fileUploadId`; any image whose tag is dropped is removed.\n\n`label` and `isMajorUpdate` are rejected with `400` unless `operation=publish`.\n",
        "value": {
          "relatedQuestions": [
            "How do I reset my password?",
            "What if the reset email never arrives?"
          ],
          "customAttributes": [
            {
              "attribInternalName": "audience",
              "attribValues": [
                {
                  "value": "Administrators"
                }
              ]
            }
          ],
          "compliancePolicy": {
            "id": "5001"
          },
          "links": [
            {
              "rel": "topic",
              "href": "/knowledge/contentmgr/v4/topics/KB-3102"
            },
            {
              "rel": "article",
              "href": "/knowledge/contentmgr/v4/articles/PROD-4102"
            }
          ],
          "unlinks": [
            {
              "rel": "topic",
              "href": "/knowledge/contentmgr/v4/topics/KB-3103"
            },
            {
              "rel": "article",
              "href": "/knowledge/contentmgr/v4/articles/PROD-3050"
            }
          ],
          "macro": {
            "name": "password_reset_support_hours",
            "description": "Reusable support-hours note for password reset content.",
            "defaultValue": "Agents respond within 24 hours.",
            "fallbackArticle": {
              "id": "PROD-2997"
            }
          },
          "versions": [
            {
              "name": "How to reset your password",
              "description": "Steps to reset a forgotten password.",
              "keywords": "password reset,sign-in,troubleshooting",
              "summary": "Reset your password from the account portal.",
              "additionalInfo": "Applies to SSO and local accounts.",
              "content": "<p>Open the sign-in page, select <b>Forgot password</b>, and follow the emailed reset instructions.</p><p><img id=\"96ea5bd9-36dd-4771-aaa7-aa8cf794307e\" alt=\"Forgot password link\" width=\"480\" /></p><p><img fileUploadId=\"7b2e94a1-0c58-4d63-9f17-5ae83b6c204d\" alt=\"Reset confirmation\" width=\"480\" /></p>",
              "structuredAuthoring": {
                "confidenceLevel": {
                  "value": "validated"
                },
                "environment": "Online banking portal, Account Management",
                "issueDescription": "Customer cannot complete password reset after being redirected from the sign-in page.",
                "issueCause": "Redirect URI mismatch between the portal and the identity provider."
              },
              "availabilityDate": "2027-08-19T09:00:00.000Z",
              "expirationDate": "2028-04-14T23:59:59.000Z",
              "imageUrl": "https://www.example.com/images/kb/password-reset-draft.png",
              "attachments": [
                {
                  "id": "9001"
                },
                {
                  "fileUploadId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
                }
              ],
              "articleType": {
                "id": "932100000002021"
              },
              "personalization": {
                "accessTagCategories": [
                  {
                    "id": "300",
                    "tags": [
                      {
                        "id": "301"
                      }
                    ],
                    "tagGroups": [
                      {
                        "id": "330"
                      }
                    ]
                  }
                ],
                "filterTagCategories": [
                  {
                    "id": "310",
                    "tags": [
                      {
                        "id": "311"
                      }
                    ],
                    "tagGroups": [
                      {
                        "id": "340"
                      }
                    ]
                  }
                ],
                "publishViews": [
                  {
                    "id": "320"
                  }
                ]
              },
              "ownedBy": {
                "id": "1005"
              },
              "includeInGenAI": true
            }
          ]
        }
      },
      "412_etag_mismatch_article": {
        "value": {
          "code": "412-101",
          "developerMessage": "Precondition failed on resource. If-Match ETag did not match."
        }
      },
      "article_already_checked_out": {
        "description": "The article is already checked out (locked) by another user",
        "value": {
          "code": "409-101",
          "developerMessage": "The article is already checked out by another user: <article_id>."
        }
      },
      "CreateArticleAllAttributes": {
        "summary": "All writable attributes",
        "description": "Create an article with every writable request field populated. `content` embeds a\npre-uploaded inline image by its `fileUploadId`; `attachments` adds a separately\npre-uploaded file by its own `fileUploadId`.\n\n`label` and `isMajorUpdate` are not accepted on create.\n",
        "value": {
          "folder": {
            "id": "20240000000123"
          },
          "language": {
            "code": "en-US"
          },
          "relatedQuestions": [
            "How do I reset my password?",
            "What if the reset email never arrives?"
          ],
          "customAttributes": [
            {
              "attribInternalName": "audience",
              "attribValues": [
                {
                  "value": "Administrators"
                }
              ]
            }
          ],
          "compliancePolicy": {
            "id": "5001"
          },
          "links": [
            {
              "rel": "topic",
              "href": "/knowledge/contentmgr/v4/topics/KB-3102"
            },
            {
              "rel": "article",
              "href": "/knowledge/contentmgr/v4/articles/PROD-4102"
            }
          ],
          "macro": {
            "name": "password_reset_support_hours",
            "description": "Reusable support-hours note for password reset content.",
            "defaultValue": "Agents respond within 24 hours.",
            "fallbackArticle": {
              "id": "PROD-2997"
            }
          },
          "versions": [
            {
              "name": "How to reset your password",
              "description": "Steps to reset a forgotten password.",
              "keywords": "password reset,sign-in,troubleshooting",
              "summary": "Reset your password from the account portal.",
              "additionalInfo": "Applies to SSO and local accounts.",
              "content": "<p>Open the sign-in page, select <b>Forgot password</b>, and follow the emailed reset instructions.</p><p><img fileUploadId=\"c1f0a3d2-9b47-4e15-8a6c-2d7e5f4b8091\" alt=\"Forgot password link\" width=\"480\" /></p>",
              "structuredAuthoring": {
                "confidenceLevel": {
                  "value": "validated"
                },
                "environment": "Online banking portal, Account Management",
                "issueDescription": "Customer cannot complete password reset after being redirected from the sign-in page.",
                "issueCause": "Redirect URI mismatch between the portal and the identity provider."
              },
              "availabilityDate": "2027-08-19T09:00:00.000Z",
              "expirationDate": "2028-04-14T23:59:59.000Z",
              "imageUrl": "https://www.example.com/images/kb/password-reset-draft.png",
              "attachments": [
                {
                  "fileUploadId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
                }
              ],
              "articleType": {
                "id": "932100000002021"
              },
              "personalization": {
                "accessTagCategories": [
                  {
                    "id": "300",
                    "tags": [
                      {
                        "id": "301"
                      }
                    ],
                    "tagGroups": [
                      {
                        "id": "330"
                      }
                    ]
                  }
                ],
                "filterTagCategories": [
                  {
                    "id": "310",
                    "tags": [
                      {
                        "id": "311"
                      }
                    ],
                    "tagGroups": [
                      {
                        "id": "340"
                      }
                    ]
                  }
                ],
                "publishViews": [
                  {
                    "id": "320"
                  }
                ]
              },
              "ownedBy": {
                "id": "1005"
              },
              "includeInGenAI": true
            }
          ]
        }
      }
    },
    "requestBodies": {
      "CreateTopicRequest": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/CreateTopic"
            },
            "examples": {
              "Required Attributes (Top-Level Topic)": {
                "summary": "Only required attributes — create a top-level topic in a department.",
                "value": {
                  "name": "Customer Support FAQ",
                  "department": {
                    "id": "1005"
                  }
                }
              },
              "Required Attributes (Sub-Topic)": {
                "summary": "Only required attributes — create a sub-topic under a parent topic.",
                "value": {
                  "name": "Billing Inquiries",
                  "parent": {
                    "id": "KB-3102"
                  }
                }
              },
              "All Attributes": {
                "summary": "All writable attributes on create (shown for a sub-topic).",
                "value": {
                  "name": "Billing Inquiries",
                  "description": "Topic for billing related questions.",
                  "parent": {
                    "id": "KB-3102"
                  },
                  "translateContent": true,
                  "imageUrl": "https://cdn.example.com/icons/billing.png",
                  "articleForTopicHomeContent": {
                    "id": "PROD-2996"
                  },
                  "customAttributes": [
                    {
                      "attribInternalName": "priority",
                      "attribValues": [
                        {
                          "value": "High"
                        }
                      ]
                    }
                  ],
                  "links": [
                    {
                      "rel": "article",
                      "href": "/knowledge/contentmgr/v4/articles/PROD-2996"
                    },
                    {
                      "rel": "article",
                      "href": "/knowledge/contentmgr/v4/articles/PROD-3477"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "EditTopicRequest": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/EditTopic"
            },
            "examples": {
              "All Attributes": {
                "summary": "All editable attributes.",
                "value": {
                  "name": "Updated Topic Name",
                  "description": "Updated description for the topic.",
                  "translateContent": false,
                  "imageUrl": "https://cdn.example.com/icons/billing.png",
                  "articleForTopicHomeContent": {
                    "id": "PROD-2996"
                  },
                  "customAttributes": [
                    {
                      "attribInternalName": "priority",
                      "attribValues": [
                        {
                          "value": "Medium"
                        }
                      ]
                    }
                  ],
                  "links": [
                    {
                      "rel": "article",
                      "href": "/knowledge/contentmgr/v4/articles/PROD-2996"
                    },
                    {
                      "rel": "article",
                      "href": "/knowledge/contentmgr/v4/articles/PROD-2997"
                    }
                  ],
                  "unlinks": [
                    {
                      "rel": "article",
                      "href": "/knowledge/contentmgr/v4/articles/PROD-3050"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "EditArticleOrderRequest": {
        "required": true,
        "description": "Replace the top and/or bottom lists for manual article sorting. Each list supplied is replaced in full, in the order given.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/EditArticleOrder"
            },
            "examples": {
              "Reorder Articles": {
                "summary": "Pin two articles to the top and one to the bottom of the topic's list.",
                "value": {
                  "topArticlesList": [
                    {
                      "id": "PROD-2996"
                    },
                    {
                      "id": "PROD-2997"
                    }
                  ],
                  "bottomArticlesList": [
                    {
                      "id": "PROD-3050"
                    }
                  ]
                }
              },
              "Clear Top List": {
                "summary": "Clear the top list; the bottom list is omitted and left unchanged.",
                "value": {
                  "topArticlesList": []
                }
              }
            }
          }
        }
      },
      "CreateFolderRequest": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/CreateFolder"
            },
            "examples": {
              "Required Attributes (Root-Level Folder)": {
                "summary": "Only required attributes — create a root-level folder in a department.",
                "value": {
                  "name": "Service Knowledge Base",
                  "department": {
                    "id": "1000"
                  }
                }
              },
              "Required Attributes (Sub-Folder)": {
                "summary": "Only required attributes — create a sub-folder under a parent folder.",
                "value": {
                  "name": "2024 Q4 Budget Planning",
                  "parent": {
                    "id": "20240000000122"
                  }
                }
              },
              "All Attributes": {
                "summary": "All writable attributes on create (shown for a sub-folder).",
                "value": {
                  "name": "2024 Q4 Budget Planning",
                  "description": "Confidential financial planning for Q4.",
                  "parent": {
                    "id": "20240000000122"
                  },
                  "translateContent": false,
                  "permissions": [
                    {
                      "identity": {
                        "user": {
                          "id": "2001"
                        }
                      },
                      "permission": [
                        {
                          "value": "own_folder",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "view_folder",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "create_folder",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "delete_folder",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "edit_folder",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "create_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "edit_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "delete_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "suggest_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "manage_suggestions",
                          "isAssigned": true,
                          "toPropagate": true
                        }
                      ]
                    },
                    {
                      "identity": {
                        "group": {
                          "id": "3001"
                        }
                      },
                      "permission": [
                        {
                          "value": "own_folder",
                          "isAssigned": false,
                          "toPropagate": false
                        },
                        {
                          "value": "view_folder",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "create_folder",
                          "isAssigned": false,
                          "toPropagate": false
                        },
                        {
                          "value": "delete_folder",
                          "isAssigned": false,
                          "toPropagate": false
                        },
                        {
                          "value": "edit_folder",
                          "isAssigned": false,
                          "toPropagate": false
                        },
                        {
                          "value": "create_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "edit_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "delete_article",
                          "isAssigned": false,
                          "toPropagate": false
                        },
                        {
                          "value": "suggest_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "manage_suggestions",
                          "isAssigned": false,
                          "toPropagate": false
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "EditFolderRequest": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/EditFolder"
            },
            "examples": {
              "All Attributes": {
                "summary": "All editable attributes.",
                "value": {
                  "name": "Public Company Policy",
                  "description": "Updated description for public consumption.",
                  "translateContent": false,
                  "permissions": [
                    {
                      "identity": {
                        "user": {
                          "id": "2001"
                        }
                      },
                      "permission": [
                        {
                          "value": "own_folder",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "view_folder",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "create_folder",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "delete_folder",
                          "isAssigned": false,
                          "toPropagate": false
                        },
                        {
                          "value": "edit_folder",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "create_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "edit_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "delete_article",
                          "isAssigned": false,
                          "toPropagate": false
                        },
                        {
                          "value": "suggest_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "manage_suggestions",
                          "isAssigned": true,
                          "toPropagate": true
                        }
                      ]
                    },
                    {
                      "identity": {
                        "group": {
                          "id": "3001"
                        }
                      },
                      "permission": [
                        {
                          "value": "own_folder",
                          "isAssigned": false,
                          "toPropagate": false
                        },
                        {
                          "value": "view_folder",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "create_folder",
                          "isAssigned": false,
                          "toPropagate": false
                        },
                        {
                          "value": "delete_folder",
                          "isAssigned": false,
                          "toPropagate": false
                        },
                        {
                          "value": "edit_folder",
                          "isAssigned": false,
                          "toPropagate": false
                        },
                        {
                          "value": "create_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "edit_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "delete_article",
                          "isAssigned": false,
                          "toPropagate": false
                        },
                        {
                          "value": "suggest_article",
                          "isAssigned": true,
                          "toPropagate": true
                        },
                        {
                          "value": "manage_suggestions",
                          "isAssigned": false,
                          "toPropagate": false
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "EditArticleRequest": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/EditArticle"
            },
            "examples": {
              "All writable attributes": {
                "$ref": "#/components/examples/EditArticleAllAttributes"
              }
            }
          }
        }
      },
      "CreateArticleRequest": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/CreateArticle"
            },
            "examples": {
              "All writable attributes": {
                "$ref": "#/components/examples/CreateArticleAllAttributes"
              }
            }
          }
        }
      }
    },
    "headers": {
      "eTag": {
        "description": "UTC ISO-8601 timestamp identifying the resource version for use with the `If-Match` header on subsequent updates.",
        "schema": {
          "type": "string",
          "format": "date-time",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$",
          "minLength": 20,
          "maxLength": 24,
          "example": "2026-04-15T09:00:00.000Z"
        }
      }
    }
  },
  "x-sla-file": "./sla.yaml"
}