---
updatedAt: 2026-01-14T19:13:40.000Z
agentTools:
  projectIndex: https://dev.tapcart.com/llms.txt
---

# Update the version index of an App Studio Component

Updates the active version of an App Studio Component by setting its version index. Requires write auth.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Tapcart @tapcart/app-pages API",
    "description": "@tapcart/app-pages within the microservice systems",
    "version": "1.0.0"
  },
  "paths": {
    "/client/{appId}/components/{componentKey}/versions": {
      "put": {
        "summary": "Update the version index of an App Studio Component",
        "description": "Updates the active version of an App Studio Component by setting its version index. Requires write auth.",
        "tags": [
          "Development API - Components"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "componentKey",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Key of the App Studio Component to update (ex. \"ProductCard\")"
          },
          {
            "in": "path",
            "name": "appId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of the app to retrieve component for."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "versionIndex": {
                    "type": "number",
                    "description": "The index of the version to set as active"
                  },
                  "owner": {
                    "type": "object",
                    "description": "The owner object to filter by"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "App Studio Component version index successfully updated"
          },
          "400": {
            "description": "Bad request, missing component label or invalid version index"
          },
          "404": {
            "description": "App Studio Component or version not found"
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "servers": [
    {
      "url": "https://api.tapcart.com/"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```