---
title: "Update the version index of an App Studio Component"
method: PUT
path: "/client/{appId}/components/{componentKey}/versions"
tags: ["Development API - Components"]
---

# Update the version index of an App Studio Component

`PUT /client/{appId}/components/{componentKey}/versions`

## Request

- Base URL: `https://api.tapcart.com`
- URL: `https://api.tapcart.com/client/{appId}/components/{componentKey}/versions`
- Auth: HTTP bearer

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

## Path parameters

- `componentKey` string, required
- `appId` string, required

## Request body

- object
  - `versionIndex` number: The index of the version to set as active
  - `owner` object: The owner object to filter by

## Response `200`

App Studio Component version index successfully updated

## Other responses

- `400`: Bad request, missing component label or invalid version index
- `404`: App Studio Component or version not found
- `500`: Internal server error

---

[API](https://skmtc.dev/tapcart/apis/tapcart-tapcart-app-pages-api.md) - [All operations](https://skmtc.dev/tapcart/apis/tapcart-tapcart-app-pages-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tapcart/apis/tapcart-tapcart-app-pages-api/revisions/4b5a76199cc4?raw)
