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

# Move a Section Group

> Moves a section group and its sections, keeping learner progress. Member access follows the destination program and question category settings. Moving the source program's last group creates a default group there.



## OpenAPI

````yaml /api-reference/openapi.json post /section_groups/{id}/move
openapi: 3.0.1
info:
  title: SchoolMaker API V1
  description: API for managing your SchoolMaker school
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://schoolmaker.co/api/v1
    description: Production API
security:
  - bearerAuth: []
paths:
  /section_groups/{id}/move:
    post:
      tags:
        - Section Groups
      summary: Move a Section Group
      description: >-
        Moves a section group and its sections, keeping learner progress. Member
        access follows the destination program and question category settings.
        Moving the source program's last group creates a default group there.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - destination_program_id
              properties:
                destination_program_id:
                  type: string
                  minLength: 1
                  maxLength: 255
                  description: >-
                    Destination program ID. You need edit access to both
                    programs. The group is placed at the end of the destination
                    program. If the group is already in the destination program,
                    the API returns it unchanged.
              additionalProperties: false
            example:
              destination_program_id: PROGRAM_ID
      responses:
        '200':
          description: Successful operation.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  product_id:
                    type: string
                  name:
                    type: string
                  position:
                    type: integer
              example:
                id: GROUP_ID
                product_id: PROGRAM_ID
                name: Getting started
                position: 1
        '401':
          description: Access denied
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    oneOf:
                      - type: string
                      - type: array
                        items:
                          type: string
              example:
                error: Access denied
        '403':
          description: You do not have permission to perform this action
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    oneOf:
                      - type: string
                      - type: array
                        items:
                          type: string
              example:
                error: You do not have permission to perform this action
        '404':
          description: Section group or destination program not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    oneOf:
                      - type: string
                      - type: array
                        items:
                          type: string
              example:
                error: Record not found
        '422':
          description: >-
            Invalid arguments On cross-program moves, existing questions require
            an enabled, published destination category of the same type. Inline
            Questions and Community share a type. The destination forum category
            must be open to receive questions. A Consultation question linked to
            a session in another category blocks the move.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    oneOf:
                      - type: string
                      - type: array
                        items:
                          type: string
                  code:
                    type: string
                    description: >-
                      Present when a move rule blocks the request.
                      questions_disabled means the destination cannot receive
                      existing questions. question_destination_mismatch means
                      the question types differ.
                      consultation_session_category_mismatch means an existing
                      question is linked to a session in another category.
              example:
                error: >-
                  Existing lesson questions need an available destination
                  category. Check Program Settings → Questions go to before
                  moving this content.
                code: questions_disabled
        '429':
          description: Too many requests
          content:
            text/plain:
              schema:
                type: string
              example: |
                Throttled
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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