> ## 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 collections

> Set the order of the collections on one level of the tree. Send every collection id in
the order they should appear, plus the `parentId` whose children are being ordered
(omit it for the top level). The server rewrites all of that level's ranks so the order
is exact and stable; siblings left out keep their relative order and follow the listed
ones. Returns the level's collections in their new order.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json put /helpcenter/collections/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/order:
    put:
      tags:
        - Help center collections
      summary: Reorder collections
      description: >-
        Set the order of the collections on one level of the tree. Send every
        collection id in

        the order they should appear, plus the `parentId` whose children are
        being ordered

        (omit it for the top level). The server rewrites all of that level's
        ranks so the order

        is exact and stable; siblings left out keep their relative order and
        follow the listed

        ones. Returns the level's collections in their new order.
      operationId: ReorderHelpcenterCollections
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HelpCenterCollectionOrderDto'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/CollectionWithCounts'
                type: array
      security:
        - jwt: []
components:
  schemas:
    HelpCenterCollectionOrderDto:
      properties:
        collectionIds:
          items:
            type: string
          type: array
          description: >-
            The ids of the collections on one level of the tree, in the order
            they should be

            shown. Siblings that are left out keep their relative order and are
            appended after

            the listed ones.
        parentId:
          type: string
          description: >-
            The parent whose children are being ordered. Omit to order the
            top-level collections.
      required:
        - collectionIds
      type: object
      additionalProperties: false
    CollectionWithCounts:
      allOf:
        - $ref: '#/components/schemas/HelpcenterCollectionDocument'
        - properties:
            subCollectionsCount:
              type: number
              format: double
            articlesCount:
              type: number
              format: double
          required:
            - subCollectionsCount
            - articlesCount
          type: object
    HelpcenterCollectionDocument:
      allOf:
        - $ref: '#/components/schemas/HelpcenterCollectionI'
        - $ref: '#/components/schemas/Document'
    HelpcenterCollectionI:
      $ref: '#/components/schemas/InferSchemaType_typeofhelpcenterCollectionSchema_'
    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_typeofhelpcenterCollectionSchema_:
      $ref: >-
        #/components/schemas/IfAny_typeofhelpcenterCollectionSchema.any.ObtainSchemaGeneric_typeofhelpcenterCollectionSchema.DocType__
    FlattenMaps_T_:
      properties: {}
      type: object
    IfAny_typeofhelpcenterCollectionSchema.any.ObtainSchemaGeneric_typeofhelpcenterCollectionSchema.DocType__:
      allOf:
        - properties:
            updatedAt:
              $ref: '#/components/schemas/NativeDate'
            createdAt:
              $ref: '#/components/schemas/NativeDate'
          required:
            - updatedAt
            - createdAt
          type: object
        - properties:
            iconUrl:
              type: string
            extendedAudienceFilter: {}
            baseAudienceFilter: {}
            docId:
              type: number
              format: double
            lexorank:
              type: string
            project:
              properties:
                isValid:
                  properties: {}
                  type: object
                createFromHexString:
                  properties: {}
                  type: object
                createFromTime:
                  properties: {}
                  type: object
                generate:
                  properties: {}
                  type: object
                cacheHexString: {}
              type: object
            parent:
              properties:
                isValid:
                  properties: {}
                  type: object
                createFromHexString:
                  properties: {}
                  type: object
                createFromTime:
                  properties: {}
                  type: object
                generate:
                  properties: {}
                  type: object
                cacheHexString: {}
              type: object
            externalId:
              type: string
            title: {}
            description: {}
            targetAudience:
              type: string
          required:
            - targetAudience
          type: object
    NativeDate:
      type: string
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````