Apps And Solutions
Application

Update the lifecycle of an application version.

1min
PUT
/developer/apps/versions/{appVersionId}/states

This API is used to update the lifecycle of an application version.

Application lifecycle phases are the different stages that an application goes through before it is available for customers to subscribe. Application developers need to submit the application for review once they are ready to publish the application. The application is then reviewed by the OS1 platform team and approved for publishing. One the application is approved for publishing, It goes through internal/ marketplace publish preview process in the marketaplce and put in live phase where it can be subscribed to by the customers.

This API can be used to change the lifecycle phase of an application. The following table shows the different lifecycle phases and the actions that can be performed on the application in each phase.

The following rules are enforced:

  • No more than one version can be in dev at a time.
  • No more than one version can be in tech review at a time.
  • Only one live, non-deprecated version can exist at a given time (however deprecated live versions can exist).
CommandPerformed by
SUBMIT_FOR_TECH_REVIEWDeveloper admin
DECLINE_TECH_REVIEWProduct Admin
WITHDRAW_FROM_TECH_REVIEWDeveloper Admin
APPROVE_TECH_REVIEWProduct Admin
SUBMIT_FOR_INTERNAL_PUBLISH_REVIEWDeveloper Admin
SUBMIT_FOR_MARKETPLACE_PUBLISH_REVIEWDeveloper Admin
APPROVE_INTERNAL_PUBLISHProduct Admin
APPROVE_MARKETPLACE_PUBLISHProduct Admin
DEPRECIATEProduct Admin
Path Parameters
appVersionId
*
Header Parameters
x-developerplatform-access
*
Body Parameters
body
*
action
*
Responses
200
403
User does not have access to the app's org/team combo
error
*
request
*
404
App not found based on provided app version id
error
*
request
*
Curl
JS
Ruby
Python
Responses
200
403
404