---
title: "Share Template"
method: POST
path: "/v1/template/share"
tags: ["templates"]
---

# Share Template

`POST /v1/template/share`

## Request body

- object
  - `template_id` string, required
  - `is_public` boolean, required

## Response `200`

Example response

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

## Other responses

- `400` — Example response
- `401` — Example response
- `404` — Example response
- `500` — Example response

## Changes

- **2024-01-31** `4f557b176ebd` — 3 breaking, 9 info
  - the request property `is_public` became required
  - the request property `template_id` became required
  - removed the success response with the status `201`
  - added the media type `application/json` for the response with the status `500`
  - …8 more
- **2023-12-06** `35be9c1301b7` — 1 info
  - api tag `templates` added
- **2023-12-05** `5c3748c387f7` — 4 breaking, 5 warning, 6 info
  - removed the media type `application/json` for the response with the status `500`
  - removed the required property `message` from the response with the `200` status
  - removed the required property `message` from the response with the `401` status
  - removed the required property `result` from the response with the `200` status
  - …11 more

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/template/share/post.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/4f557b176ebd/schema)
