---
title: "Update an issue template"
method: PATCH
path: "/api/workspaces/{workspaceId}/issue-templates/{templateId}"
tags: ["Issue Templates"]
---

# Update an issue template

`PATCH /api/workspaces/{workspaceId}/issue-templates/{templateId}`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/issue-templates/{templateId}`
- Auth: API key in cookie `hiveship_access`

## Path parameters

- `workspaceId` string, required
- `templateId` string, required

## Request body

- object
  - `name` string
  - `titleScaffold` string, nullable
  - `descriptionMd` string, nullable
  - `defaultLabelIds` string[]
  - `defaultPriority` 'URGENT' | 'HIGH' | 'MEDIUM' | 'LOW' | 'NONE', nullable
  - `defaultStoryPoints` integer, nullable
  - `defaultEstimatedHours` number, nullable

## Response `200`

Template updated

- object
  - `success` boolean, required
  - `data` object, required
    - `id` string, cuid, required
    - `workspaceId` string, cuid, required
    - `name` string, required
    - `titleScaffold` string, nullable, required
    - `descriptionMd` string, nullable, required
    - `defaultLabelIds` string[], required
    - `defaultPriority` 'URGENT' | 'HIGH' | 'MEDIUM' | 'LOW' | 'NONE', nullable, required
    - `defaultStoryPoints` number, nullable, required
    - `defaultEstimatedHours` number, nullable, required
    - `creator` object, nullable, required
      - `id` string, cuid, required
      - `name` string, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400`: Validation error
- `403`: Not the template creator or workspace admin
- `404`: Template not found

---

[API](https://skmtc.dev/hiveship/apis/hiveship-api.md) · [All operations](https://skmtc.dev/hiveship/apis/hiveship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hiveship/apis/hiveship-api/revisions/73d3e26544e4?raw)
