A non-specific publishing error similar to unable to publish might occur when you use the exchange asset upload command to upload your custom ruleset and its documentation.
If you attempt to upload an asset using the wrong command syntax, you might inadvertently publish it as the wrong asset type. You can’t republish the asset with the same asset ID as a different asset type.
To republish the ruleset in this situation, fix the syntax, change the asset ID, and try uploading again. For example, change my-auth-best-practices to my-new auth-best-practices.
Here is an example updated command:
anypoint-cli-v4 exchange asset upload my-new-auth-best-practices/1.0.0 --name "My Best Practices Ruleset" --description "This ruleset enforces my best practices for APIs." --files='{"ruleset.yaml":"/myRulesetFolder/mynewruleset.yaml","docs.zip":"/myRulesetFolder/ruleset.doc.zip"}'