# SwaggerHub Templates API

**Canonical:** https://apis.io/apis/swaggerhub/swaggerhub-templates-api/  
**Provider:** SwaggerHub — https://apis.io/providers/swaggerhub/  
**Base URL:** https://api.swaggerhub.com  
**Documentation:** https://support.smartbear.com/swaggerhub/docs/en/swaggerhub-apis.html

SwaggerHub Templates API is one of 10 APIs that [SwaggerHub](https://apis.io/providers/swaggerhub/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Templates. The published artifact set on APIs.io includes an OpenAPI specification.

The Templates API from SwaggerHub — 14 operation(s) for templates.

## Operations (21)

| Method | Path | Summary |
|---|---|---|
| POST | `/templates/{owner}/{templateId}` | Create or update a template |
| DELETE | `/templates/{owner}/{templateId}` | Delete a template |
| GET | `/templates/{owner}/{templateId}/{version}` | Retrieves a template definition |
| DELETE | `/templates/{owner}/{templateId}/{version}` | Delete a particular version of a template |
| GET | `/templates` | Retrieves list of templates |
| GET | `/templates/{owner}/{templateId}/{version}/settings/private` | Retrieve visibility settings |
| PUT | `/templates/{owner}/{templateId}/{version}/settings/private` | Update visibility settings |
| POST | `/templates/{owner}/{templateId}/{version}/fork` | Fork a template |
| GET | `/templates/{owner}/{templateId}/{version}/settings/lifecycle` | Retrieves lifecycle settings |
| PUT | `/templates/{owner}/{templateId}/{version}/settings/lifecycle` | Updates lifecycle settings |
| POST | `/templates/{owner}/{templateId}/rename` | Rename a template |
| GET | `/templates/{owner}/{templateId}/{version}/comments` | Returns the list of comments for a template |
| POST | `/templates/{owner}/{templateId}/{version}/comments` | Adds a new comment to the specified template |
| POST | `/templates/{owner}/{templateId}/{version}/comments/batch` | Updates passed batch of comments |
| DELETE | `/templates/{owner}/{templateId}/{version}/comments/{comment}` | Deletes specified comment |
| PATCH | `/templates/{owner}/{templateId}/{version}/comments/{comment}` | Updates specified comment |
| PUT | `/templates/{owner}/{templateId}/{version}/comments/{comment}/status/{status}` | Updates status of the specified comment |
| POST | `/templates/{owner}/{templateId}/{version}/comments/{comment}/replies` | Adds a new reply to the specified comment |
| DELETE | `/templates/{owner}/{templateId}/{version}/comments/{comment}/replies/{reply}` | Deletes specified comment reply |
| PATCH | `/templates/{owner}/{templateId}/{version}/comments/{comment}/replies/{reply}` | Updates specified comment reply |
| GET | `/specs` | Retrieves a list of currently defined APIs, Domains and Templates in APIs.json… |

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/swaggerhub/openapi/swaggerhub-templates-api-openapi.yml

## Other SwaggerHub APIs (9)

- [SwaggerHub Domains API](https://apis.io/apis/swaggerhub/swaggerhub-domains-api/)
- [SwaggerHub Integrations API](https://apis.io/apis/swaggerhub/swaggerhub-integrations-api/)
- [SwaggerHub Organizations API](https://apis.io/apis/swaggerhub/swaggerhub-organizations-api/)
- [SwaggerHub Projects API](https://apis.io/apis/swaggerhub/swaggerhub-projects-api/)
- [SwaggerHub Search API](https://apis.io/apis/swaggerhub/swaggerhub-search-api/)
- [SwaggerHub Settings API](https://apis.io/apis/swaggerhub/swaggerhub-settings-api/)
- [SwaggerHub Standardization API](https://apis.io/apis/swaggerhub/swaggerhub-standardization-api/)
- [SwaggerHub Teams API](https://apis.io/apis/swaggerhub/swaggerhub-teams-api/)
- [SwaggerHub APIs API](https://apis.io/apis/swaggerhub/swaggerhub-apis-api/)

## Tags

Templates

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/swaggerhub/swaggerhub-templates-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/swaggerhub/.
