v2

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-07-21130282381.6 KB
APIs

Duplicate an API

Duplicate an API

Create a new API from an existing one. Context-path is required for HTTP APIs and host is required for TCP APIs. If one of these fields is missing, then it returns a 400 Bad Request.

post/environments/{envId}/apis/{apiId}/_duplicate

Request body

contextPathstring

The context path of the duplicated API (required for HTTP APIs).

hoststring

The host of the duplicated API (required for TCP APIs).

versionstring

The version of the duplicated API. If it is not defined, the value of the source API is used.

filteredFieldsstring[] required

The list of API fields that can be excluded to create the new API.

Response

API successfully duplicated

OR
OR
OR