---
title: "Updates a global repository template."
method: PUT
path: "/global-templates"
tags: ["Global templates"]
---

# Updates a global repository template.

`PUT /global-templates`

## Request body

- GlobalTemplate
  - `description` string — the description of the global template
  - `id` integer — the ID of the global template configuration
  - `logoData` string — the base64-encoded image logo
  - `template` RestRepositoryRef — the template repository; just pass its repository ID, e.g., { "id" : 1 } OR project key and repository slug, e.g. { "project" : { "key" : "PROJECT_1" }, "slug" : "rep_1" }
    - `id` integer
    - `project` ProjectRef
      - `key` string
    - `slug` string

## Response `200`

Global repository templates updated

- GlobalTemplate
  - `description` string — the description of the global template
  - `id` integer — the ID of the global template configuration
  - `logoData` string — the base64-encoded image logo
  - `template` RestRepositoryRef — the template repository; just pass its repository ID, e.g., { "id" : 1 } OR project key and repository slug, e.g. { "project" : { "key" : "PROJECT_1" }, "slug" : "rep_1" }
    - `id` integer
    - `project` ProjectRef
      - `key` string
    - `slug` string

## Other responses

- `401` — The currently authenticated user does not have ADMIN credentials
- `404` — The global template does not exist

---

[API](https://skmtc.dev/mibexsoftware/apis/repository-templates-for-bitbucket-rest-api.md) · [All operations](https://skmtc.dev/mibexsoftware/apis/repository-templates-for-bitbucket-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mibexsoftware/repository-templates-for-bitbucket-rest-api/revisions/34d717f7cf3a/schema)
