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

# Edit App Version

> Edit a managed app version. Apply a new version label or edit the app version's bundled files.



## OpenAPI

````yaml Patch /v1/apps/{packageName}/versions/{versionId}
openapi: 3.1.0
info:
  title: ManageXR API
  description: API documentation for ManageXR
  version: 1.0.0
servers:
  - url: https://managexrapi.com
    description: ManageXR API Server
security:
  - basicAuth: []
paths:
  /v1/apps/{packageName}/versions/{versionId}:
    patch:
      summary: Edit app version
      description: >-
        Edit a managed app version. Apply a new version label or edit the app
        version's bundled files.
      parameters:
        - name: packageName
          in: path
          required: true
          schema:
            type: string
          description: The package name of the app
        - name: versionId
          in: path
          required: true
          schema:
            type: string
          description: Unique identifier of the app version
        - name: organizationId
          in: query
          required: false
          schema:
            type: string
          description: >
            Unique identifier of the organization. This parameter is only
            necessary when using multi-organization API keys. 


            Defaults to the organizationId associated with the API key.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                versionLabel:
                  type: string
                  description: Label for uniqueness among app versions
                  example: Quest
                files:
                  type: array
                  items:
                    oneOf:
                      - $ref: '#/components/schemas/V1BundledFileEditDto'
            example:
              versionLabel: Quest
      responses:
        '200':
          description: Success
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 400
                  message:
                    type: string
                    example: Invalid request
                  error:
                    type: string
                    example: ManageXR Error
              example:
                statusCode: 400
                message: Invalid request
                error: ManageXR Error
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 403
                  message:
                    type: string
                    example: Forbidden
                  error:
                    type: string
                    example: ManageXR Error
              example:
                statusCode: 403
                message: Forbidden
                error: ManageXR Error
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 404
                  message:
                    type: string
                    example: App with version id {versionId} not found!
                  error:
                    type: string
                    example: Not Found
              example:
                statusCode: 404
                message: App with version id {versionId} not found!
                error: Not Found
components:
  schemas:
    V1BundledFileEditDto:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the file
          example: DLO133U5NFLMAL1
        deviceDirectoryPaths:
          type: array
          description: >-
            Array of directory paths to deploy the file on the device. Each
            entry in the array should include the full path as a string. This
            field is an array because, although uncommon, you can deploy the
            same file to multiple different locations on a device.
          items:
            type: string
            desciption: Full directory path to location for file on device.
            example: /Android/obb/com.managexr.exampleApp/files
      example:
        id: DLO133U5NFLMAL1
        deviceDirectoryPaths:
          - /Android/obb/com.managexr.exampleApp/files
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >
        API key based authentication where <encoded-value> is the Base64
        encoding of `API_KEY_ID`:`API_KEY_SECRET`

        - **Username**: The API Key ID.

        - **Password**: The API Key Secret.

````