Forum Discussion

jeifit's avatar
jeifit
New Contributor
7 years ago

publish/unpublish an api through the registry api

The registry api, documented here https://app.swaggerhub.com/apis/swagger-hub/registry-api/1.0.45#/, allows the ability to create, update, read, and delete an api. However, it does not appear to prov...
  • HKosova's avatar
    5 years ago

    Registry API now also lets you publish/unpublish definitions. Example:

    curl -X PUT "https://api.swaggerhub.com/apis/OWNER/API_NAME/VERSION/settings/lifecycle"
         -H "Authorization: SWAGGERHUB_API_KEY"
         -H "Content-Type: application/json"
         -d "{\"published\": true}"

    API docs