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

# Update a BlockTemplate.

Updates an existing block template if `forceUpdate` is true. 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/blockTemplates/{blockTemplateId}": {
      "put": {
        "summary": "Update a BlockTemplate.",
        "description": "Updates an existing block template if `forceUpdate` is true. Requires write auth.",
        "tags": [
          "Development API - Block Templates"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "blockTemplateId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of the block template to change to be updated"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "owner": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "Owner type (e.g. 'app')."
                      },
                      "id": {
                        "type": "string",
                        "description": "Owner ID (required if owner type is 'app')."
                      }
                    }
                  },
                  "label": {
                    "type": "string",
                    "description": "The label of the BlockTemplate."
                  },
                  "code": {
                    "type": "string",
                    "description": "The encoded source code for the BlockTemplate."
                  },
                  "transpiledCode": {
                    "type": "string",
                    "description": "The encoded transpiled code for the BlockTemplate."
                  },
                  "manifestOptionsList": {
                    "type": "array",
                    "description": "List of manifest options.",
                    "items": {
                      "type": "object"
                    }
                  },
                  "forceUpdate": {
                    "type": "boolean",
                    "description": "If true, forces an update on an existing BlockTemplate.",
                    "default": false
                  },
                  "updateDescription": {
                    "type": "string",
                    "description": "Description for the update."
                  },
                  "tags": {
                    "type": "array",
                    "description": "Tags associated with the BlockTemplate.",
                    "items": {
                      "type": "string"
                    }
                  },
                  "status": {
                    "type": "string",
                    "description": "Status of the BlockTemplate."
                  },
                  "versionIndex": {
                    "type": "number",
                    "description": "The index of the version to set (only used if force updating)."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "BlockTemplate successfully created or updated."
          },
          "400": {
            "description": "Bad request, including invalid `versionIndex` or missing required fields."
          },
          "401": {
            "description": "Unauthorized access."
          },
          "404": {
            "description": "BlockTemplate not found when force updating."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "servers": [
    {
      "url": "https://api.tapcart.com/"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```