How to deleting API Revision in SmartDocs Model

Not applicable

I created a model and under that i created a Revision with some APIs. Again I added new revision of smart docs under that model. I want to delete the first API revision. Is there a way to do that, as I do not see any option to delete a specific revision.

Solved Solved
0 5 432
1 ACCEPTED SOLUTION

@Suresh Mishra ,

Revisions help you version track your API Model changes. Any reason why you would like to delete API revision instead of creating new revision ?

Anyway, You can still delete the API Model revison using the Smartdocs Apigee API Modelling APIs.

DELETE https://api.enterprise.apigee.com/v1/organizations/{YOURORGNAME}/apimodels/{MODELUUID}/revisions/{RE...

curl -X DELETE -H "Authorization: Basic XXXXXXXXX" "https://api.enterprise.apigee.com/v1/organizations/{YOURORGNAME}/apimodels/{MODELUUID}/revisions/{REVISIONUUID}"

Remember, Smartdocs pages in developer portal do not get updated automatically when you delete API model revision from API Modelling datastore. Either you need to manually revert smartdocs page by clicking on Revisions Tab in Smartdocs page / Publish older version of API model in developer portal smartdocs admin page.

Hope it helps.

View solution in original post

5 REPLIES 5

@Suresh Mishra ,

Revisions help you version track your API Model changes. Any reason why you would like to delete API revision instead of creating new revision ?

Anyway, You can still delete the API Model revison using the Smartdocs Apigee API Modelling APIs.

DELETE https://api.enterprise.apigee.com/v1/organizations/{YOURORGNAME}/apimodels/{MODELUUID}/revisions/{RE...

curl -X DELETE -H "Authorization: Basic XXXXXXXXX" "https://api.enterprise.apigee.com/v1/organizations/{YOURORGNAME}/apimodels/{MODELUUID}/revisions/{REVISIONUUID}"

Remember, Smartdocs pages in developer portal do not get updated automatically when you delete API model revision from API Modelling datastore. Either you need to manually revert smartdocs page by clicking on Revisions Tab in Smartdocs page / Publish older version of API model in developer portal smartdocs admin page.

Hope it helps.

Just wanted to know. I had created some dummy/test documentation, so was trying to delete them to avoid any confusion that may arise for the end user. Thanks for your response.

Also, @Suresh Mishra, if you want to delete the documentation corresponding to the model version you want to delete, you can either unpublish those Drupal nodes or delete them. But it's a manual process in the Drupal admin UI.

Thanks @Floyd Jones for clarifying the query.

@Floyd Jones , Just FYI, Smartdocs Revisions are tracked as node revisions. Deleting the node will delete all the revisions. Yep, It's a manual process that can be done by portal admin.