---
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`

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.net/tapcart/apis/tapcart-tapcart-app-pages-api.md) · [All operations](https://skmtc.net/tapcart/apis/tapcart-tapcart-app-pages-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tapcart/tapcart-tapcart-app-pages-api/revisions/4b5a76199cc4/schema)
