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

# Reorder articles

> Set the order of the articles in a collection. Send every article id in the order they
should appear; the server rewrites all of the collection's ranks so the order is exact
and stable. Articles left out of the list keep their relative order and follow the
listed ones. Returns the collection's articles in their new order.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json put /helpcenter/collections/{helpcenterCollectionId}/articles/order
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /helpcenter/collections/{helpcenterCollectionId}/articles/order:
    put:
      tags:
        - Help center articles
      summary: Reorder articles
      description: >-
        Set the order of the articles in a collection. Send every article id in
        the order they

        should appear; the server rewrites all of the collection's ranks so the
        order is exact

        and stable. Articles left out of the list keep their relative order and
        follow the

        listed ones. Returns the collection's articles in their new order.
      operationId: ReorderHelpcenterArticles
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HelpcenterArticleOrderDto'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/HelpcenterArticleDocument'
                type: array
      security:
        - jwt: []
components:
  schemas:
    HelpcenterArticleOrderDto:
      properties:
        articleIds:
          items:
            type: string
          type: array
          description: >-
            The ids of this collection's articles, in the order they should be
            shown. Articles of

            the collection that are left out keep their relative order and are
            appended after the

            listed ones.
      required:
        - articleIds
      type: object
      additionalProperties: false
    HelpcenterArticleDocument:
      allOf:
        - $ref: '#/components/schemas/HelpcenterArticleI'
        - $ref: '#/components/schemas/Document'
    HelpcenterArticleI:
      $ref: '#/components/schemas/InferSchemaType_typeofhelpcenterArticleSchema_'
    Document:
      $ref: '#/components/schemas/FlattenMaps_T_'
      description: >-
        Generic types for Document:

        *  T - the type of _id

        *  TQueryHelpers - Object with any helpers that should be mixed into the
        Query type

        *  DocType - the type of the actual Document created
    InferSchemaType_typeofhelpcenterArticleSchema_:
      $ref: >-
        #/components/schemas/IfAny_typeofhelpcenterArticleSchema.any.ObtainSchemaGeneric_typeofhelpcenterArticleSchema.DocType__
    FlattenMaps_T_:
      properties: {}
      type: object
    IfAny_typeofhelpcenterArticleSchema.any.ObtainSchemaGeneric_typeofhelpcenterArticleSchema.DocType__:
      allOf:
        - properties:
            updatedAt:
              $ref: '#/components/schemas/NativeDate'
            createdAt:
              $ref: '#/components/schemas/NativeDate'
          required:
            - updatedAt
            - createdAt
          type: object
        - properties:
            extendedAudienceFilter: {}
            baseAudienceFilter: {}
            docId:
              type: number
              format: double
            author:
              properties:
                isValid:
                  properties: {}
                  type: object
                createFromHexString:
                  properties: {}
                  type: object
                createFromTime:
                  properties: {}
                  type: object
                generate:
                  properties: {}
                  type: object
                cacheHexString: {}
              type: object
            helpcenterCollection:
              properties:
                isValid:
                  properties: {}
                  type: object
                createFromHexString:
                  properties: {}
                  type: object
                createFromTime:
                  properties: {}
                  type: object
                generate:
                  properties: {}
                  type: object
                cacheHexString: {}
              type: object
            upvotes: {}
            plainContent: {}
            lexorank:
              type: string
            project:
              properties:
                isValid:
                  properties: {}
                  type: object
                createFromHexString:
                  properties: {}
                  type: object
                createFromTime:
                  properties: {}
                  type: object
                generate:
                  properties: {}
                  type: object
                cacheHexString: {}
              type: object
            externalId:
              type: string
            content: {}
            title: {}
            description: {}
            sourceUsage:
              type: number
              format: double
            version:
              type: number
              format: double
            isDraft:
              type: boolean
            targetAudience:
              type: string
            tags:
              items:
                type: string
              type: array
          required:
            - sourceUsage
            - version
            - isDraft
            - targetAudience
            - tags
          type: object
    NativeDate:
      type: string
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````