---
title: "Update Template"
method: PATCH
path: "/v1/template"
---

# Update Template

`PATCH /v1/template`

## Request body

- object
  - `template` string, required
  - `template_id` string, required
  - `prompt` string

## Response `200`

Example response

- object
  - `message` string, required
  - `status` boolean
  - `template_id` string, nullable

## Other responses

- `401` — Example response
- `500` — Example response

## Changes

- **2023-12-05** `5c3748c387f7` — 3 breaking, 4 warning, 6 info
  - the response property `template_id` became nullable for the status `200`
  - the response property `template_id` became optional for the status `200`
  - removed the required property `template_name` from the response with the `200` status
  - deleted the `header` request parameter `X-Team-Id`
  - …9 more

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/template/patch.md)

---

[API](https://skmtc.dev/projectdiscovery/apis/pdcp-api.md) · [All operations](https://skmtc.dev/projectdiscovery/apis/pdcp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/projectdiscovery/pdcp-api/revisions/5c3748c387f7/schema)
