Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 2.15 KB

release-a-block-version.md

File metadata and controls

43 lines (31 loc) · 2.15 KB
description
Releasing a block version is an action that marks the block version as being ready for production use.

Release a block version

POST /api/management/projects/{projectId}/blocks/{blockId}/actions

Releasing a block version is an action that marks the block version as being ready for production use. This is a workflow action typically performed by the developer(s) producing the block. Releasing a block version moves it's workflow status from Draft to Released and sets the version number to a major release. Once a block version is released then it can be selected to be used within a Renderer for use within a live website.

Properties

Name Parameter type Type Format Description
projectId path string The project identifier, e.g. "movieDb". Found in the project overview screen of the management console

Remarks

If the version specified is not the latest version or the version is already a released version, then a validation error will be returned.

Example

Accept: application/json
POST: /api/management/projects/movieDb/blocks/movie-listing/actions
{
    "type": "release",
    "data": {
        "version": "0.9"
    }
}

Response message

HTTP status code Reason Response model
202 Accepted Block version
401 Unauthorized Error
404 ProjectNotFound Error
422 ValidationError Error
500 InternalServerError Error