Swagger: Create Portal Product
swagger_create_portal_productCreate a new product in a specific Swagger portal from scratch or by duplicating an existing product, and configure its name, slug, visibility, and public access.
Instructions
Create a new product for a specific portal.
Toolset: Products
Parameters:
portalId (string) required: Portal UUID or subdomain - unique identifier for the portal instance
type (string) required: Product creation type - 'new' to create from scratch or 'copy' to duplicate an existing product
productId (string): Source product UUID to copy from - required when type is 'copy', specifies which existing product to duplicate. Omit when type is 'new'
name (string) required: Product display name - will be shown to users in the portal navigation and product listings (3-40 characters)
slug (string) required: URL-friendly identifier for the product - must be unique within the portal, used in URLs (e.g., 'my-api' becomes /my-api). 3-22 characters, lowercase, alphanumeric with hyphens, underscores, or dots
description (string): Product description - explains what the API/product does, shown in product listings and cards (max 110 characters)
public (boolean): Whether the product is publicly visible to all portal visitors - false means only authenticated users with appropriate roles can access it
visibility (enum): Whether the product is shown on the portal landing page - 'visible' shows it to everyone, 'hidden' hides it from everyone, 'conditional' shows it only to users who have access to the product (not allowed when the product is public)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Product display name - will be shown to users in the portal navigation and product listings (3-40 characters) | |
| slug | Yes | URL-friendly identifier for the product - must be unique within the portal, used in URLs (e.g., 'my-api' becomes /my-api). 3-22 characters, lowercase, alphanumeric with hyphens, underscores, or dots | |
| type | Yes | Product creation type - 'new' to create from scratch or 'copy' to duplicate an existing product | |
| public | No | Whether the product is publicly visible to all portal visitors - false means only authenticated users with appropriate roles can access it | |
| portalId | Yes | Portal UUID or subdomain - unique identifier for the portal instance | |
| productId | No | Source product UUID to copy from - required when type is 'copy', specifies which existing product to duplicate. Omit when type is 'new' | |
| visibility | No | Whether the product is shown on the portal landing page - 'visible' shows it to everyone, 'hidden' hides it from everyone, 'conditional' shows it only to users who have access to the product (not allowed when the product is public) | |
| description | No | Product description - explains what the API/product does, shown in product listings and cards (max 110 characters) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| url | No | ||
| name | No | ||
| slug | No | ||
| public | No | ||
| portalId | No | ||
| visibility | No | ||
| description | No |