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

# Edit Index

> Edits an existing media index/group details



## OpenAPI

````yaml GET /edit-index
openapi: 3.0.1
info:
  title: Moonshine API
  description: Video Understanding API
  version: 1.0.0
servers:
  - url: https://api.usemoonshine.com
security: []
paths:
  /edit-index:
    get:
      description: Edits an existing media index/group details
      parameters:
        - name: userid
          in: query
          description: The user ID owning the media index
          required: true
          schema:
            type: string
        - name: projectid
          in: query
          description: ID of the project to edit
          required: true
          schema:
            type: string
        - name: projectname
          in: query
          description: New name for the project. If not provided, remains unchanged
          required: false
          schema:
            type: string
        - name: projectdescription
          in: query
          description: New description for the project. If not provided, remains unchanged
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Successfully edited media group
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: Status message confirming the edit
                    example: Media group has been edited
                  project_id:
                    type: string
                    description: ID of the edited project
                  project_name:
                    type: string
                    description: Updated project name
                  project_description:
                    type: string
                    description: Updated project description
              example:
                status: Media group has been edited
                project_id: 123abc
                project_name: New Project Name
                project_description: New Project Description
        '400':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string

````