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

# Edit user_grp

> Edit a [user_grp](/concepts/user_grp) record by ID



## OpenAPI

````yaml POST /user_grp/edit/{id}
openapi: 3.0.0
info:
  version: 2.0.0
  title: illuxiLMS API
  description: Interact with the illuxiLMS API to manage your learning content and users.
  termsOfService: https://illuxi.com/conditions-utilisation/
  contact:
    name: illuxi Team
    email: info@illuxi.com
    url: https://illuxi.com
servers:
  - url: https://{portalApiUrl}
    description: Production server (uses live data)
    variables:
      portalApiUrl:
        default: your-portal.acme.com/api-v2
        description: Your portal's API URL
security:
  - bearerAuth: []
paths:
  /user_grp/edit/{id}:
    post:
      description: Edit a [user_grp](/concepts/user_grp) record by ID
      operationId: editUserGrp
      parameters:
        - name: id
          in: path
          description: ID of user_grp to edit
          required: true
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserGrp'
            example:
              user_grp_group_admin: 1
      responses:
        '200':
          description: updated user_grp
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                  result:
                    $ref: '#/components/schemas/UserGrp'
        default:
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    UserGrp:
      type: object
      properties:
        user_grp_id:
          type: integer
          description: Unique identifier of the user-group membership record
          readOnly: true
        user_grp_grp_id:
          type: integer
          description: ID of the group
        user_grp_user_id:
          type: integer
          description: ID of the user
        user_grp_group_admin:
          type: integer
          description: Whether the user is a group admin (1 = yes, 0 = no)
        user_grp_created_date:
          type: string
          format: date-time
          readOnly: true
          description: Date the membership was created
        user_grp_updated_date:
          type: string
          format: date-time
          readOnly: true
          description: Date the membership was last updated
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Authentication token obtained from POST /token

````