App and Solution
Solutions
Solution Version Management
5min
overview developers can create a new version of their solution using the createsolutionversion api by providing the new version of the solution this section walks through the process of creating new solution versions to delete development versions on the os1 platform here’s how the os1 platform manages versions versions we support up to 2 development versions the first version is in the development state , which means it is actively being worked on by developers the second version is at the ready to publish state, having been tech review approved but not yet published this approach is designed so that developers can continue their new development work while the qa team validates the ready to publish version in preparation for publication live versions the os1 platform accommodates up to 2 live versions this setup is strategic, allowing for a phased rollout of new versions 1 creating a new version note note to create a new version, an existing version should be at least in the ready to publish state see the submit for review guide for more details on how to move the app to the ready to publish state purpose create a new version for an existing solution using the metadata from the previous version endpoint post /developer/solutions/{solutionid}/versions attributes attribute description version the new version of the app parentversion the base version from which the new version has to be created if the parent version is not provided then the latest ready to publish version will used as a base version example request the following shows an example createsolutionversion request the request creates version 2 0 0 for a solution example request { "version" "2 0 0", "parentversion" "1 0 0" } response upon successful execution, the api will return details of the new version, including the guid for the newly created version 2\ deleting a development version purpose deletes a solution version currently in the development phase note a version in any state after development cannot be deleted endpoint delete /developer/solutions/versions/{solutionversionid} response when successful, the api will return a 200 response code, indicating the version was deleted successfully note ensure the version you're trying to delete is in the 'development' state deleting versions in any other state will trigger an error response