Spec Clone
API Specs
Spec Clone
Clone a spec to create a private copy.
Creates a complete copy of the spec including:
- Spec document (spec, examples, llm_summary, agentic_metadata, etc.)
- Spec configuration (security_info, operations_state, common_parameters)
The cloned spec will be tenant-specific (not global) and independent. All metadata (created_by, created_at, updated_at) will be updated.
Parameters:
- api_name (str): The name of the source spec to clone.
- payload (SpecClonePayload): Payload containing clone_api_title.
Returns:
- dict: Dictionary containing api_name of the cloned spec.
Raises:
- HTTPException(400): If clone_api_title validation fails (invalid characters or exceeds 100 characters).
- HTTPException(404): If the source spec is not found.
- HTTPException(409): If the clone_api_title already exists.
- HTTPException(500): If an error occurs while cloning the spec.
POST
Spec Clone
Authorizations
JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'
Path Parameters
Body
application/json
Request body model for cloning a spec.
Title (human-readable) for the cloned spec
Response
Successful Response
