Publish a set of API versions

POST https://{controlplane_path}/api/1/rest/public/apim/publish_versions      

This API publishes the specified set of API versions.

Prerequisites

  • Environment (Org) admin permissions

Response

{
    "response_map": {
        "successful_versions": [
            "/docteamorg/apim/MyAPI/1.0"
        ],
        "unsuccessful_versions": [
            {
                "/docteamorg/apim/MyAPI/2.0": "Problem publishing API Specification: Invalid API specification"
            }
        ]
    },
    "http_status_code": 200
}
Key Type Description
successful_versions array List of API version paths that were successfully published.
unsuccessful_versions array List of API version paths that failed to publish, with error messages.