Manage Existing Products

It's very natural to want to manage an existing API product. The administrative APIs support editing the product settings, as well as the ability to add, edit, or delete API references and Markdown documents. Should the need arise to delete a product completely, the APIs also cater for this use case.

Edit Product Settings

A product's settings can be updated via a PATCH Patch product request.

Sample cURL request to update product settings:

curl --location --request PATCH '<PRODUCT-ID>' \
--header 'Authorization: Bearer <YOUR-SWAGGERHUB-APIKEY>' \
--header 'Content-Type: application/json' \

--data '{
  "name": "Pet Adoptions",
  "slug": "pet-adoptions",
  "description": "API documentation, tutorials, and guides enabling programmatic adoption of pets",
  "public": true,
  "hidden": false

Edit API Reference, Documentation, or Table of Contents Order

A product's API references, Markdown document references, or table-of-contents orders can be updated via a PATCH Patch table of contents entry request.

Sample cURL request to update a product API reference:

curl --location --request PATCH '<ID>' \
--header 'Authorization: Bearer <YOUR-SWAGGERHUB-APIKEY>' \
--header 'Content-Type: application/json' \

--data '{
  "slug": "pets-and-adoptions-api-1.0.0",
  "title": "Pets and Adoptions API",
  "order": 3,
  "content": {
    "type": "apiUrl",
    "url": ""

It's possible to have multiple API references and documents as part of a product. To add additional content to the table-of-contents follow the guides in Add APIs to Product and Add Docs to Product

Restore deleted items

To get the list of the deleted table of contents items, use the endpoint GET Get removed table of contents. Note that the deleted items are cleared once you've published your content.

To restore a removed table of contents, use the endpoint POST /table-of-contents/{tableOfContentsId}/removed. Note that this action does not restore the children pages of a page.