---
title: "Update the versionIndex of an existing BlockTemplate."
method: PUT
path: "/client/{appId}/blockTemplates/{blockTemplateId}/versions"
tags: ["Development API - Block Templates"]
---

# Update the versionIndex of an existing BlockTemplate.

`PUT /client/{appId}/blockTemplates/{blockTemplateId}/versions`

## Request

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

Updates the `versionIndex` of a specified BlockTemplate by blockTemplateId.

## Path parameters

- `blockTemplateId` string, required
- `appId` string, required

## Request body

- object
  - `versionIndex` number: The version index to set.

## Response `200`

BlockTemplate versionIndex successfully updated.

## Other responses

- `400`: Invalid or missing `versionIndex`.
- `404`: BlockTemplate not found with the specified blockTemplateId.
- `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)
