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

# Set Section Group Details

> Updates a section group's name or position.



## OpenAPI

````yaml patch /section_groups/{id}
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}:
    patch:
      tags:
        - Section Groups
      summary: Set Section Group Details
      description: Updates a section group's name or position.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
                - type: object
                  additionalProperties: false
                  properties:
                    name:
                      type: string
                      maxLength: 100
                      description: >-
                        Group title, up to 100 characters. Defaults to the
                        school language's standard group name. Send null or an
                        empty string to restore this name.
                      nullable: true
                    position:
                      type: integer
                      minimum: 1
                      description: >-
                        Position within the program, starting at 1. Defaults to
                        the end on creation. Moving a group shifts the other
                        groups. Must fit the number of groups in the program.
                        Null is not accepted.
                - type: object
                  additionalProperties: false
                  properties:
                    attributes:
                      type: object
                      additionalProperties: false
                      properties:
                        name:
                          type: string
                          maxLength: 100
                          description: >-
                            Group title, up to 100 characters. Defaults to the
                            school language's standard group name. Send null or
                            an empty string to restore this name.
                          nullable: true
                        position:
                          type: integer
                          minimum: 1
                          description: >-
                            Position within the program, starting at 1. Defaults
                            to the end on creation. Moving a group shifts the
                            other groups. Must fit the number of groups in the
                            program. Null is not accepted.
                  required:
                    - attributes
            examples:
              flat:
                value:
                  name: Getting started
                  position: 1
              nested:
                value:
                  attributes:
                    name: Getting started
                    position: 1
      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: Record 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
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    oneOf:
                      - type: string
                      - type: array
                        items:
                          type: string
              example:
                error: Invalid arguments
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    oneOf:
                      - type: string
                      - type: array
                        items:
                          type: string
              example:
                error: Too many requests
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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