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

# Unarchive article

> This API unarchives an article. Its state stays `draft`. For CLI sessions, this needs the Modify articles permission. A synced article cannot be unarchived.

> [!NOTE]
>
> Replace `{your-subdomain}` with your workspace's subdomain. \
> Learn how to find your subdomain in [Workspace subdomain](https://apidocs.neetokb.com/api/workspace-subdomain.md).


## OpenAPI

````yaml bundled/articles.yaml DELETE /articles/{article_id}/archive
openapi: 3.0.3
info:
  title: NeetoKB Articles API
  version: 1.0.0
servers:
  - description: NeetoKB API
    url: https://{your-subdomain}.neetokb.com/api/external/v2
    variables:
      your-subdomain:
        default: spinkart
        description: >-
          Replace **spinkart** with your [workspace's
          subdomain](/api/workspace-subdomain).
security: []
paths:
  /articles/{article_id}/archive:
    delete:
      summary: Unarchive article
      description: >-
        This API unarchives an article. Its state stays `draft`. For CLI
        sessions, this needs the Modify articles permission. A synced article
        cannot be unarchived.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - $ref: '#/components/parameters/article_id_param'
      responses:
        '200':
          description: OK - Article unarchived
          content:
            application/json:
              schema:
                type: object
                properties:
                  article:
                    $ref: '#/components/schemas/article_summary'
        '401':
          $ref: '#/components/responses/unauthorized_response'
        '403':
          description: >-
            Forbidden - The CLI session lacks the Modify articles permission, or
            the article is synced from another product
        '404':
          $ref: '#/components/responses/not_found_response'
        '422':
          description: Unprocessable Entity - The article is not archived
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_body'
components:
  parameters:
    api_key_header:
      in: header
      name: X-Api-Key
      description: >-
        Use the X-Api-Key header to provide your workspace API key. Refer to
        [Authentication](/api/authentication) for more information.
      required: true
      schema:
        type: string
        default: your-api-key
    article_id_param:
      in: path
      name: article_id
      description: >-
        Unique identifier of the article. Can be the article's slug, permalink,
        or ID. Refer to [Getting the Article ID](/api/getting-article-id)
        section for detailed instructions.
      required: true
      schema:
        type: string
  schemas:
    article_summary:
      type: object
      properties:
        id:
          type: string
          format: uuid
        slug:
          type: string
          example: getting-started
        state:
          type: string
          enum:
            - draft
            - published
          example: draft
        title:
          type: string
          example: Getting Started Guide
        is_archived:
          type: boolean
    error_body:
      type: object
      properties:
        error:
          type: string
  responses:
    unauthorized_response:
      description: Unauthorized - API key is missing or invalid
    not_found_response:
      description: Not Found - The record does not exist in this workspace
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Not found.

````

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